XUpload - Adding data fields

Message
Author
sansabar
Posts: 4
Joined: Feb 15, 2008 6:11 pm

Adding data fields

#1 Postby sansabar » Feb 15, 2008 6:14 pm

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',

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Feb 15, 2008 7:20 pm

yes

Code: Select all

enable_file_descr => 1,
should work. Didn't it?

sansabar
Posts: 4
Joined: Feb 15, 2008 6:11 pm

#3 Postby sansabar » Feb 15, 2008 10:31 pm

No. I seem to remember it working on the free version, but after the upgrade to the pro the file description field was no longer there. Anywhere else I should check? Everything else seems to be working fine and as edited.

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#4 Postby PilgrimX182 » Feb 18, 2008 7:02 am

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:

Code: Select all

Name:<input type="text" name="name">
Description:<input type="text" name="description">

sansabar
Posts: 4
Joined: Feb 15, 2008 6:11 pm

#5 Postby sansabar » Feb 18, 2008 11:52 am

Got it. I was making it harder than it was. Thanks.