Sorry guys... I completely missed this one - how do you enable customers to upload files to the site?
_thanks
Printable View
Sorry guys... I completely missed this one - how do you enable customers to upload files to the site?
_thanks
create an attribute option name that is a file upload.
attach the attribute to the product.
the file type input will appear on the product info page.
hope that helps
.. it does help; thanks Nick. However I am looking simply to allow people to upload their images to the server - nothing to do with purchasing any particular product but completely separate.. I still don't really understand how/why they would need this... any suggestions/reasoning is very welcome <<
_thanks
I am not sure that I understand what you want to do with the images.
But :
To upload image to the server independently is possible but it would involve a bit of custom coding.
You could create a 'free product' that included an image upload. The images are going to be uploaded to the server and then you can do what you wish with them.
A bit more information about what you are trying to do would let us give a bit more tailored advice.
The two options above still stand, I think.
You can do a bit of custom coding to create that effect. Describing that is perhaps a bit beyond the scope of a forum post, I am afraid.
Alternatively you can use a 'product' to achieve the result. One attribute would be the file upload and other attributes could be the rest of the 'form'. The price would be zero. It is not an absolutely ideal solution but it is the best that can be done without dipping into code a bit, I believe.
But others may have better ideas?
I'll dip into the code but just thinking I want to keep everything safe - not allow people to just upload anything so it will have to be quite a dip..
_thanks
Well, the uploads are handled by the class upload.php which will cope with the some of the security issues for you. (Evidently, allowing uploads to your server is intrinsically insecure in some ways)
So, I would add an upload attribute to a test product and see how the <input type="file"> is configured by zen cart. That will give you a starting point.
THe issue is about how you 'document' the upload. What I mean by that is storing the details about who made the upload, the file name and any other pertinent information is just as important as the actual upload? In which case there is a bit more work than simply adding an input field.