VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Problems and bugs
 Change allowed file types to upload?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

stone5150
VP-ASP New User

USA
186 Posts

Posted - May 06 2007 :  20:26:07  Show Profile  Visit stone5150's Homepage  Reply with Quote
I want to change what file types that are allowed to be uploaded from cart when Customer Upload Image is set to yes for a product.

In shopa_uploadfilepop.asp lines 66 - 70 there is this script
if len(xuploadtypes) > 0 then 'if xuploadtypes is defined in shop$config, use it as the comparison parameters
validTypes = split(xuploadtypes, ",")
else 'otherwise, use the following "default" image types
validTypes = split("jpg,jpeg,gif,png", ",")
end if

I tried to change the validTypes variable but it didn't do anything.

Where/How do I change this?

Bob Stone
www.kansasstamps.org

Edited by - stone5150 on May 07 2007 12:26:14

support
Administrator

4266 Posts

Posted - May 07 2007 :  21:38:42  Show Profile  Visit support's Homepage  Reply with Quote
Dear Bob,

The list of allowable file types for customer upload is in shopuploadfilepopcart.asp

const xuploadtypes = "jpg,jpeg,gif,png"

These are the default allowable file extensions. You should be extremely cautious about what file types you allow customers to upload on your site.


Regards,

Michael
VPASP SUPPORT

Go to Top of Page

stone5150
VP-ASP New User

USA
186 Posts

Posted - May 07 2007 :  22:01:52  Show Profile  Visit stone5150's Homepage  Reply with Quote
Micheal,

I was just going to take off .jpeg and add .bmp

Bob Stone
www.kansasstamps.org
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000