parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Rest Api deleting file not working

Open ishaan1995 opened this issue 10 years ago • 5 comments

While trying to deleta a file using rest api with master key i get response msg--> cannot delete /parse/files/$myappid/$filename.extension

and on my server i get 404 router error

cURL command -------->

curl -X DELETE
-H "X-Parse-Application-Id: $appid"
-H "X-Parse-Master-Key: $masterKey"
https://server-add/parse/files/...profile.png

or

curl -X DELETE
-H "X-Parse-Application-Id: $appid"
-H "X-Parse-Master-Key: $masterKey"
https://server-add/parse/files/$myappid/...profile.png

both statments cause the above mentioned response. Is there a reliable solution to my problem?

ishaan1995 avatar Feb 10 '16 16:02 ishaan1995

Delete is not yet implemented in files.js or the file adapter system. Definitely useful to add, will mark up-for-grabs for now.

gfosco avatar Feb 10 '16 21:02 gfosco

so it will be implemented in near future.thanx

ishaan1995 avatar Feb 11 '16 06:02 ishaan1995

The file delete is still not working, i have update the parse-server code today, that has the commit for file delete, but still the same error occurs as mentioned above. It seems as the master key is doing nothing because even if i do not enter the master key, i get that same error--> cannot delete /parse/....

ishaan1995 avatar Feb 12 '16 08:02 ishaan1995

Any chance you can provide more details? We have a full e2e test for it, so without more details it's very hard to diagnose the error.

Also, could you create a new issue for it and link back here?

nlutsenko avatar Feb 12 '16 09:02 nlutsenko

The same for me, not working..

umusset avatar Apr 07 '16 18:04 umusset