Skip to content

Rest Api deleting file not working #340

Closed

Description

@ishaan1995

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?

Activity

  1. changed the title [-]Rest Api delete of file not working[/-] [+]Rest Api deleting file not working[/+] on Feb 10, 2016
  2. gfosco commented on Feb 10, 2016

    @gfosco
    Contributor

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

  3. ishaan1995 commented on Feb 11, 2016

    @ishaan1995
    Author

    so it will be implemented in near future.thanx

  4. ishaan1995 commented on Feb 12, 2016

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

  5. nlutsenko commented on Feb 12, 2016

    @nlutsenko
    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?

  6. umusset commented on Apr 7, 2016

    @umusset

    The same for me, not working..

  7. added
    type:featureNew feature or improvement of existing feature
    and removed on Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions