rbrick / imgy

Imgy is a screenshot hosting service compatible with ShareX
2 stars 0 forks source link

File hosting #2

Open camjac251 opened 4 years ago

camjac251 commented 4 years ago

Is this app exclusively for images? Could it also work as a file host?

camjac251 commented 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

rbrick commented 4 years ago

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
camjac251 commented 4 years ago

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?