To upload files via your command line or within your application, we suggest using CURL:

Guest uploads
$ curl -F [email protected]-to-file https://up.uploadfiles.io/upload

User uploads with auth_key
$ curl -F [email protected]-to-file -F user_id=xxx -F auth_key=xxx https://up.uploadfiles.io/upload

On success, you will receive the JSON response such as:
{"status":true,"id":7405701,"url":"https:\/\/ufile.io\/hx34gam9","destination":"https:\/\/ufile.io\/hx34gam9","name":"march.pdf","filename":"hx34gam9-march.pdf","slug":"hx34gam9","size":"141.5 KB","type":"pdf","expiry":"∞","location":4}

To upload files to your account you'll need an auth_key, which is available on our Business plan
Was this article helpful?
Cancel
Thank you!