We are currently working on a website (https://ppbranding.com.au/contact) that includes a contact form with a multiple-file upload option. When a user submits this form, we aim to generate a folder in our Dropbox account. This folder will be named after the user's input in the 'Name' field of the contact form, followed by the corresponding date (e.g., John-Smith-26-10-2023). Within this folder, all the uploaded documents will be stored.
To achieve this, we are utilizing the Dropbox OAuth 2.0 API. Initially, we were providing an Access Token manually generated from the App Console. However, this token's validity is limited to approximately 4 hours. To make this process dynamic and more user-friendly, we now require users to authenticate themselves by logging into their Dropbox accounts. If you visit the link mentioned above, you will see a popup window for Dropbox login.
We have reviewed the Dropbox API documentation, but we haven't found othe convenient solution that would allow us to generate the access token programmatically behind the scenes without requiring our users to log in or sign up for Dropbox accounts. It's important to note that, in our current setup, having a Dropbox account is mandatory for users to submit the form with uploaded documents. However, since all the data is ultimately stored in our Dropbox account, we are exploring any potential alternatives that would enable us to store user documents in our Dropbox using the API without mandating Dropbox login or signup for our users.
Any help in this regard will be highly appreciable.