Jump to content

Allow customers to upload PDF and larger file sizes - how do I?


hanny137

Recommended Posts

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

  • 2 weeks later...

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...