(04-10-2012 03:51 AM)Yin Wrote: The problem happens when I click direct download. When I'm done filling out the info and click submit, it prompts me to fill in something for file upload. (even though I filled it out already).
I don't know what you mean by "you filled out already".
Reading your code above, it seems that you use two custom thread fields for your file upload.
One File input type (file upload and URL upload), and one Textbox input type (direct link).
Each custom thread fields has their own
Editable by / Required Field? setting.
If both of them is a required fields, you can't fill one of them only.
If one of them is a required field, at least you must fill the required field.
For example, if you set the File input type as a required field, and the Textbox as a non required field, and your user fill the Textbox only, they will get the inline errors saying that your File input type need to be filled, because it's a required field.