hanny137 Posted September 25, 2016 Share Posted September 25, 2016 Howdy gang, I've googled and googled but haven't been able to figure out how to allow users to upload additional file types. I really need to allow for my customers to upload PDF files - and I need to increase the file upload size limit as well.What's the best way to accomplish this?I really don't want to have to purchase/install a plugin/module JUST to do this - where in the code can I find and adjust to allow bigger file sizes and to allow PDFs? Link to comment Share on other sites More sharing options...
hanny137 Posted September 27, 2016 Author Share Posted September 27, 2016 I can't be the only person who has ever wanted to do this... Link to comment Share on other sites More sharing options...
hanny137 Posted October 7, 2016 Author Share Posted October 7, 2016 Just another topic where there are lots of people who want to know how to do this, but no one ever replies. Prestashop - come on. Link to comment Share on other sites More sharing options...
tuk66 Posted October 10, 2016 Share Posted October 10, 2016 What is "larger files?" Link to comment Share on other sites More sharing options...
hanny137 Posted October 11, 2016 Author Share Posted October 11, 2016 I just meant 'larger files', but I figured out how to set that in settings. I was limited to 2MB or less at first, I've updated that.I've also figured out how to upload PDF files, AI files and EPS files.Is there a way to change the way the 'delete' button is handled on customer uploaded photos?The html is: <a href="http://localhost:81/prestashop/home/8-test.html?deletePicture=1" title="Delete"> <img class="customization_delete_icon" src="http://localhost:81/prestashop/themes/mytheme/img/icon/delete.gif" width="12" height="12"> </a> But that causes the page to reload and any data entered in customization inputs to be deleted.is there a way to make this call AJAX? Link to comment Share on other sites More sharing options...
Naldinho Posted October 11, 2016 Share Posted October 11, 2016 There are a few modules that allow you do add the ability to upload various file times with unlimited sizes. I started looking into doing it myself and then got busy. It will be something I'll return to eventually because I need to allow customers to upload PDF files and then do some minor processing of the file and no module is going to offer that but it will likely be weeks before I can return to this. Link to comment Share on other sites More sharing options...
hanny137 Posted October 11, 2016 Author Share Posted October 11, 2016 There are a few modules that allow you do add the ability to upload various file times with unlimited sizes. I started looking into doing it myself and then got busy. It will be something I'll return to eventually because I need to allow customers to upload PDF files and then do some minor processing of the file and no module is going to offer that but it will likely be weeks before I can return to this. Yeah, I figured out how to allow those uploads using a few lines of code in the ProductController. Now I'm trying to figure out how to do the 'deletePicture' with the user photos when they click the X. I'd like to make it AJAX, because reloading the page really is a crappy way to handle it if they have customized data in the inputs. This is a whole different ball of wax. You know where the method that handles the deletePicture lives? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now