CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 File Upload keeps overwiting/deleting my file

Print topic Send  topic

Author Message
stanchat

Posts: 7
Posted: 04/18/2005, 2:29 PM

I have a ms access products table and one of the fields is called ImageName and is used to store images of the products. I am using the FileUpload Component to upload images to my server. By default the ImageName field is populated with the text no_image_available.jpg. So even when a image has not been uploaded, something appears to the user instead of the red X. I have a image stored on the server called no_image_available.jpg and when someone uploads a real picture, It appears as though the image no_image_available.jpg is being deleted or overwitten.

Does anyone know what could cause this. Also does anyone know of a better way to implement the situation liek thsi when you want a dummy or filler image to appear when no actual image has been supplied.
View profile  Send private message
peterr


Posts: 5971
Posted: 04/19/2005, 5:30 PM

You may want to take a look at this alternative solution: http://forums.codecharge.com/posts.php?post_id=48085
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
stan
Posted: 04/19/2005, 5:57 PM

Thanks it is now working. This is the code I used
if (Products.ImageLocation.value ="") then  
	Products.ImageLocation.value = "../images/no_image.jpg"  
end if

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.