Open camjac251 opened 4 years ago
I am trying to figure out uploading with curl but am running into Image file not found
errors.
Am I doing something wrong? curl -X POST -H "X-ImgyToken: mytoken" http://localhost:8080/api/upload -F file=@2after.png > test.txt
Hi! Sorry for getting back so late!
I haven't really put in a lot of time on this project, though I'd like to go and revamp it.
Currently the front end is made in a way to only display images but it shouldn't be that difficult.
As for the image error the form file needs to be named "image"
curl -X POST -H "X-ImgyToken: mytoken" http://localhost:8080/api/upload -F image=@2after.png > test.txt
Oh that was it. I get {"success":false,"error":"Failed to upload to S3"}
since I don't have S3 setup. Does this support streaming to and from S3? Or does it cache locally before uploading/downloading for serving?
Is this app exclusively for images? Could it also work as a file host?