How can data fields be added to the form? I need to make available to the client uploading the file a place for their name and perhaps a spot for addition info about the file.
In the config file I found this-
# Enable users to add descriptions to files
# Empty to disable, 1 to enable
enable_file_descr => 1,
Shouldn't this work?
Or should it look like this-
# Enable users to add descriptions to files
# Empty to disable, 1 to enable
enable_file_descr => '1',
XUpload - Adding data fields
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
yes
should work. Didn't it?
Code: Select all
enable_file_descr => 1,
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
What enable_file_descr does is adding extra text field below to every file in the form. Not to the end of the form.
If you want to add fields for Name, Description, you can add your custom fields manually and they will be POSTed to url_post URL after upload.
For example add 2 custom fields to your form:
If you want to add fields for Name, Description, you can add your custom fields manually and they will be POSTed to url_post URL after upload.
For example add 2 custom fields to your form:
Code: Select all
Name:<input type="text" name="name">
Description:<input type="text" name="description">