X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to add upload option for customers (https://forum.x-cart.com/showthread.php?t=62637)

tam10 02-13-2012 07:45 PM

How to add upload option for customers
 
Hi,

I like customers to send me photos, is it possible to add to the contact us page "Upload file" option
or to do it on a static page?

Thanks,

totaltec 02-13-2012 07:55 PM

Re: How to add upload option for customers
 
Sure it is possible, I've seen some nice upload scripts out there like this one: https://github.com/valums/file-uploader or you can investigate X-carts default file upload capabilites and see about incorporating that.

I think you may be setting yourself up for a potential security risk if you don't take proper precautions though. The file needs to be uploaded, then scanned, then moved to a safe directory. Ovious things like checking file formats, having a list of allowed formats, and limiting size are important.

BCSE also has a product image attacher, which I have used recently and it did the job. Attaches files to products though. (Is attacher even a word? I don't think so.) :_)

http://www.bcsengineering.com/store/x-cart-order_product-image-attacher.html


All times are GMT -8. The time now is 11:31 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.