NetTalk Central
NetTalk Web Server => Web Server - Share Knowledge => Topic started by: MyBrainIsFull 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
-
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
-
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
-
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"