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 ForumsRepositoryRepositoryUpload just a picture not a file, Not possibleUpload just a picture not a file, Not possible
Previous
 
Next
New Post
10/17/2007 2:34 PM
 

Hi,

I want to upload only an image.
Not a file
When i leave the field for a "file" empty and I only fill in the field for an "image", I get an error message
When I leave the field for a "image" empty an I only fill in the field for an "file", the upload is then OK
Is it not possible to upload an image only?

With regards, Ton Hermes




A File is Required

 Here the image I want to upload


Art is hard work, inspiration is the cream on top of it. See my watercolors at www.watermansite.com and my enamel art at www.watermanshop.com
 
New Post
10/17/2007 2:52 PM
 

yes, by default, a file is required. If you want to make the file optional, you need to modify the form.xml file and add a settting to the [FILE] tag.

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

If you don't want to allow a file upload at all, edit the form.html file and remove the [FILE] tag completely from the template.

 
New Post
10/17/2007 3:16 PM
 

Hi Steve,

I just search for the form.xml file on my server.
I can not find it.
Please can you let me know where I can find that file ?

With regards, Ton Hermes


Art is hard work, inspiration is the cream on top of it. See my watercolors at www.watermansite.com and my enamel art at www.watermanshop.com
 
New Post
10/17/2007 3:33 PM
 

Look under DesktopModules/Repository/Templates/<Template that you are using>/

 
New Post
10/17/2007 4:20 PM
 

Hi,

I found under Repository->Templates->articles a form.xml.
All the other templates have a form.xml too.
Only this one has the token file in it.
all the other ones have not.

Is this form in Repository->templates->articles, I have to modify like the the example of steve ?

With regards, Ton Hermes


Art is hard work, inspiration is the cream on top of it. See my watercolors at www.watermansite.com and my enamel art at www.watermanshop.com
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryUpload just a picture not a file, Not possibleUpload just a picture not a file, Not possible


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