Skip to content

Rest Api deleting file not working #340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ishaan1995 opened this issue Feb 10, 2016 · 5 comments
Closed

Rest Api deleting file not working #340

ishaan1995 opened this issue Feb 10, 2016 · 5 comments
Labels
type:feature New feature or improvement of existing feature

Comments

@ishaan1995
Copy link

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 ishaan1995 changed the title Rest Api delete of file not working Rest Api deleting file not working Feb 10, 2016
@gfosco
Copy link
Contributor

gfosco commented Feb 10, 2016

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

@ishaan1995
Copy link
Author

so it will be implemented in near future.thanx

@ishaan1995
Copy link
Author

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/....

@nlutsenko nlutsenko reopened this Feb 12, 2016
@nlutsenko
Copy link
Contributor

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?

@umusset
Copy link

umusset commented Apr 7, 2016

The same for me, not working..

@mtrezza mtrezza added type:feature New feature or improvement of existing feature and removed type:improvement labels Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or improvement of existing feature
Projects
None yet
Development

No branches or pull requests

5 participants