NetTalk Central

Author Topic: File Upload of Image does not work - Tip for newbies  (Read 4834 times)

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
File Upload of Image does not work - Tip for newbies
« on: February 16, 2015, 06:04:44 AM »
Hi all, I just wasted 5 hours on this
A form showing a product, there is a field "Image" a string of 200 chrs - pro:Image
I had a string to enter the name of the image, next day I put a file upload control onto the form, and it stopped working.

If you are doing a file upload on a form, do NOT put the field in as a string

You can have pro:image as an image showing a picture of the product
You can have a file upload button that takes the image upload, and puts the name of the file into pro:Image
But DONT also have a string for pro:image as it over rides the file upload
« Last Edit: February 18, 2015, 07:54:55 PM by MyBrainIsFull »

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Re: File Upload of Image does not work
« Reply #1 on: February 16, 2015, 10:29:47 AM »
Hi

Not exactly sure what you mean but have a look at this thread it may apply especially Bruce's last comment.

http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=6166.0

Cheers

Keith
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: File Upload of Image does not work
« Reply #2 on: February 17, 2015, 03:08:37 AM »
Hi Kevin,

Having the same field on a form twice, but with different (input) types is a bad idea.
But I'm not 100% sure that is what you are reporting. If the one field is a File Upload, and the other is an Image then I don't see a problem. (Typically you wouldn't use a "field" with an image though, you'd just use the field to construct the Image Name.)

cheers
Bruce

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: File Upload of Image does not work - Tip for newbies
« Reply #3 on: February 18, 2015, 08:04:34 PM »
Sorry guys its not a bug, its a trap I fell into that I thought I would warn others of.
I put this under "Share Knowledge",  not "Ask For Help"