Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryA File is RequiredA File is Required
Previous
 
Next
New Post
6/2/2011 7:15 PM
 
I have upgraded Repository 3.5.3 and it is simply awesome,  customized the template, it was so easy (the html/xml model) for a non coder, but after I updated to  3.5.3 version i am getting the following for not uploading a file:

A File is Required

 and in many cases i do not want to upload a file, simply the title & description etc.


can i disable the file upload as a mandatory upload ?


I checked the sql table and "null" value is allowed, checked the xml file and no reference.

You may check the module here:

http://arabaviation.com/AviationJobs/...

http://arabaviation.com/AircraftExcha...




 
New Post
6/3/2011 6:17 AM
 
yep, edit the   form.xml  file, look for a  [FILE]  token, if one doesn't exist, add it, then add a Setting named  Required  (please note the setting name and value are case-sensitive), and set the value to   false

eg:
<Object>
    <Token>[FILE]</Token>
        <Settings>
            <Setting>
                <Name>Required</Name>
                <Value>false</Value>
            </Setting>
        </Settings>
</Object>

Save it. now the file is optional and no longer required

Of course, if you wanted to use the Repository strictly for info (ie: no files or images at all), you could also edit the  form.html  file and simply remove the [FILE] and [IMAGE] tokens completely.

 
New Post
6/3/2011 10:23 AM
 
Thanks a million, it worked like a gem.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryA File is RequiredA File is Required


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out