Closed 564008975 closed 7 years ago
Hi @khanhdhv
as you can see, the contentType is actually in metedata.contentType. at the time we wrote that feature the mongodb java driver did not allow to give the file contentType a value so we put it there. I'll check if the new version allows it.
the filename file
is just the default value given when no filename property is specified. to pass it do as follows (I'm using httpie here):
http -f PUT 127.0.0.1:8080/testdb/mybucket.files/mypicture.png file@"~/Desktop/mypicture.png" properties='{"filename":"mypicture.png"}'
as you can see the properties part is a json object with filename property
added bug to our backlog, see https://softinstigate.atlassian.net/browse/RH-241
Thank you!
I have found the way to post file to the bucket. But there is a small problem when the file name have unicode characters. :D
thanks
took note in the jira bug. we will fix it...
Please check this issue https://github.com/SoftInstigate/restheart/issues/206
It shows you how to fix the encoding problem you experienced
closing for now, feel free to reopen if #206 doesn't work for you
Hi!
I've found some troubles when using restheart 3.0.0 and 3.0.1.
Are these bugs or i have to change something in configuration file?
Thanks!