Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
51 Replies
Replies have been turned off for this discussion
- Steven L.2411 years agoNew member | Level 1
Steve, thanks for the response, and sorry for the delay.
It would be useful in some of our internal applications to offer file uploads to a shared folder without requiring that users fully authenticate first. There are certainly other ways to accomplish the same thing (on Amazon S3 or an FTP server), but it would be preferable to keep everything in Dropbox (for all the same reasons we use Dropbox for Business in the first place). If you'd like, I can open a support ticket and provide more specifics.
- Steve M.11 years ago
Dropbox Staff
Steven, why wouldn't you just use the Core API (/files_put) to upload the file? (Why do you need to use a file request?)
- Steven L.2411 years agoNew member | Level 1
Ah, /files_put would work, but it'd be a bit cleaner to use a File Request. The Core API requires that requests are authenticated, so we'd have to create an app in the App Console, get Oauth credentials from one of our user accounts, and then bundle those with the internal applications.
- Steve M.11 years ago
Dropbox Staff
Steven, are you saying there's no server-side component to this app? (You're distributing apps that get installed on people's computers?) If so, you're right that you shouldn't embed an access token in that app, just as you wouldn't want to embed S3 or FTP credentials in the app.
I was assuming some server-side component that accepts the file upload and sends it along to Dropbox. E.g., in Python:
DropboxClient("<access token for the account>").put_file('/path/to/shared_folder/' + filename, file_to_upload)If there's no server-side component, I guess you were hoping to create the file request once by hand, and then embed the file request URL in the app. Is that right?
- Steven L.2411 years agoNew member | Level 1
Yes, that is correct. It's an internal application just for employees, so the credentials would not get distributed widely nor cause a real problem if they needed to be revoked. There's no server-side component for this particular feature, and direct uploads are appealing because we wouldn't have to build/maintain/expose one.
- Family E.11 years agoNew member | Level 1
Another usecase is remove the need for a business to run a backend or ftp server. Just let a IoT application regulary send in sensor data to a dropbox account. E.g daily temperature readings from a sensors is pushed to a dropbox account.
- Steve M.11 years ago
Dropbox Staff
"Family E.", why wouldn't you just use the regular /files/upload API endpoint to do this?
- Johan S.411 years agoNew member | Level 1
I would have liked to use the file request api for requesting files from a client. The client creates an order on a website, and part of this includes that the client should attach some files.
So if we could have sent a separate email with a file request using the API that would have been awesome - so we didnt have to do the upload script and email attachment ourselves.
Anyway.. not in the near future it seems :)
- Greg-DB11 years ago
Dropbox Community Moderator
Thanks for the additional feedback and context!
- ksz11 years agoNew member | Level 2
Adding another +1, there is my scenario:
- I have Dropbox File request - everyone can upload whatever he/she want, but every upload is invisible to others.
- It is ok to upload whatever, but I want help upload users exactly what I need. And I need three things: request text, request area, and... attachments. And all of this should be uploaded to my account.
- I can imagine Single Page Application (HTML5+JavaScript) where user enters text, draws area on the map, selects attachmets and then upload it all to Dropbox.
- It would be easy with File request API
Without File request API I see two options:
- Provide Oauth credentials in JavaScirpt code. It means that everybody could have acces to files uploaded by others (even delete it). So, it is not an option.
- Develop server-side component for my app, which does notihing more than securely transfer data to Dropbox
Second approach is is what I'm doing right now. It is not cost-effective: you have to use SSL connection, and provide double transfer bandwidth (upload from client to my server and then transfer it to Dropbox). There is a lot server-side programming trics like upload limits on both sides (browser and server config). This all would be unnecessary if there will be Drobpox File request API.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!