WSN Knowledge Base
Featuresspacer Showcasespacer Reviewsspacer Demosspacer Purchasespacer Manualspacer Support
Specifying Allowed Types
Specifying Allowed Types
By Paul

You can set a default for file types allowed in your settings, but sometimes you may want to override that for a particular field. You can do this by placing a hidden input field like this inside the form where the file is being submitted:

<input type="hidden" name="attachfieldtypes" value="exe,zip,gz">

Change "attachfieldtypes" to be the name of your attachment field followed by types. For example, if your field is named myattach you'd use

<input type="hidden" name="myattachtypes" value="exe,zip,gz">

Replace exe,zip,gz with the file extensions you want to allow.

Rating:


3.67/5 based on 3 votes. The median rating is 5.

Submitted: 09/12/04

Description: Setting custom allowed extensions for a particular spot.

Views: 637 views. Averaging 0 per day.
In the most recent 30 day period, there've been 1 views.

Previous Article | Next Article


Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support