Adds a possibility to upload files in order to add them to the ordering item. This Option uploads a file via AJAX in chunks, so it can handle file upload of any sizes regardless
setting on your hosting. 💪 It is possible to restrict files by size and by MIME types.
Some settings related to this Option are on plugin's settings page. These settings are global and automatically applied to all instances of File Upload Option. However, setting like max file size and _mime types allowed _can be overridden on per Option instance basis. It means that you can have fine tuned file uploads across the site! 😎
🏆 PRO FUNCTIONALITY: In addition to the main variable that holds an ID of attachment uploaded, this Option also has these special vars:
These special variables are not empty only when the image is uploaded! Images in .png, .jpg formats etc. Obviously, these variables hold values of image's width and height (in pixels) respectively and can be used in backend in maths formula used for the price calculation.
How to create a Dropbox App and configure the plugin to let customers upload files directly to your Dropbox account
- Login to your Dropbox account and visit this page https://www.dropbox.com/developers. Click on "My Apps" sidebar menu item. Click on "Create App" button and begin the process of creating the app. Check these screenshots:
Of course, you can name your app as you wish. The app name on the screenshot is for reference only. Finally, click on "Create app" button.
- Got to your newly created app and find "Generated access token" setting. Click on "Generate" button, the new access token will be generated. Keep it in secret! Go to the plugin's settings page and paste the token to the appropriate setting. Choose 'dropbox' in "File storage" setting. Save the settings.
⚠️ You have regenerate the token every time you change the folder of your app!!
😎 Files uploaded from File Upload Options will be automatically saved in your Dropbox account. "File storage" setting is the global setting. It means that the value chosen in this setting will be applied to all File Upload Options on your site automatically! You cannot change this setting on per option basis!