E-Commerce, Web Design, Custom Solutions.

File Uploader Docs

File Uploader Docs

Code: file_upload_docs

Install like any other Miva Merchant Utility Module and add your license key.

Click Utilities | Modules Tab
Assign the module and Update
Click Utilities | File Uploader Tab, enter your license key and check the box to accept the license agreement.

The module will add these default settings
Allowed Content Type: gif,jpg,png
Secure Upload Path: Merchant5/s01/file_upload/

Allowed Content Type: This can be any type of file type (by extension) but it is general not recommended to allow customer to upload executable programs.

The upload path is on the secure /mivadata/ side of your site so you will normally use ftp to access the files.
Using FTP you could create a new path like /mivadata/upload_images then configure the path as upload_images/

Hint: Using our toolbelt module within a page template you can copy files to the web site with the fscopy() function.
See http://www.mivascript.com/item/fscopy.html

To add the upload form to a page
1. Assign the item file_upload to the page
2. Paste this item in the page template, page header or page footer where you want the form to appear.
<mvt:item name="file_upload" /> NOTE:
Do NOT embed the item inside another form.
3. Browse to the web page and upload a file.
4. Click the tab File Upload Form. Edit the styles as needed but don't change the form fields.

By design the styles are applied directly to the form items, so no external styles are needed.