Share your repls and programming experiences

← Back to all posts
Simple file storage on Repl.it!
h
MarcusWeinberger (798)

Pros:
+ Easy to use in python (probably other languages too)
+ Easier to use from linux command-line (using curl)
+ NO FILE SIZE LIMIT
+ Files stay up forever
Cons:
- Relies on jsonstore.io
- Larger files take longer to upload

How is there no file limit?
Using a special client I made myself, I can bypass jsonstore.io's file upload limit. You can use it too, just copy the storage.py file in the project directory.

curl example:

cat /path/to/file | curl -F [email protected] https://bin.marcusweinberger.repl.co/

python example:

import requests
fd = open('/path/to/file','rb').read()
requests.post('https://bin.marcusweinberger.repl.co/', data={'data':fd})

It will return a URL (eg: https://bin.marcusweinberger.repl.co/aaaa) where your file will be available to download!

New! Custom links!

When uploading a file, send it to a URL similar to https://bin.marcusweinberger.repl.co/~example, where "example" is the custom link (make sure there's a ~ before it). Your file will be available at https://bin.marcusweinberger.repl.co/example.

Try it in your browser

Simply go to https://bin.marcusweinberger.repl.co/?data=helloworld

Comments
hotnewtop
Mickeymouse2 (2)

[RuntimeError]
The Poetry configuration is invalid:

  • 'description' is a required property

exit status 1

CrazyVideoGamer (12)

Why does it just say "The repl didn't wake up in time."?

MarcusWeinberger (798)

@CrazyVideoGamer a core library this depended on (jsonstore.io) is deprecated so this project doesn't work anymore

CrazyVideoGamer (12)

@MarcusWeinberger Do you have any time to try to find a new library? It would be really nice for this to work again

MarcusWeinberger (798)

@CrazyVideoGamer it would involve remaking the entire program, but I probably will someday. sadly, time is something I'm pressed for at the moment

RahulChoubey1 (186)
ModuleNotFoundError: No module named 'json_store_client'
MarcusWeinberger (798)

@RahulChoubey1 sadly jsonstore.io is dead so this doesn't work