Upload files to a cloud storage folder using its shared link

1.1k views Asked by At

Is it possible to upload files to a cloud storage folder for which I have only the shared link with edit permissions? I want to do this from my application, from code, so I'm interested in an API. I've looked into SkyDrive, GoogleDrive and DropBox APIs but I can't find a solution for this scenario in the API references.

It's fine if I have to sign in through the API with a user account to be able to upload the files to the shared link but I need to allow any user that has the link to upload files to that location.

Have I missed anything in the above mentioned APIs or are there any other cloud storage services which supply a solution for my needs?

2

There are 2 answers

4
pinoyyid On BEST ANSWER

Yes it is possible.

These are the steps I just took to verify.

  1. User-A creates a folder called 'shared folder'
  2. User-A makes that folder publicly writeable
  3. User-A passes the shared URL to User-B. The key part of the URL is the id=1bxxxxxxx
  4. User-B goes to https://developers.google.com/drive/v2/reference/files/insert#try-it
  5. ... where he authenticates himself
  6. ... creates a request body containing parent: "id_from_step_3"
  7. ... Executes the upload

The result is that User-B has created a file in the folder 'shared folder'

0
tim.baker On

I think you have got your self in a tangle.

Through a shared URL When someone gives you a URL to view and indeed edit a file that is purely for that file. You can't therefore upload files that way. You can share folders however very easily. https://support.google.com/drive/answer/2494822?hl=en https://www.dropbox.com/help/19/en

As for the API directly I can't really help you I am affraid