Jump to content

Recommended Posts

Posted

Hi guys, just wondering if there is a way of limiting the size of a file being uploaded through Wire Upload rather than server-wide?

EDIT: Am also wondering how to output any errors the WireUpload should be outputting.

Posted

Is it an alternative for you to set that variables in the .htaccess file ? 

<IfModule mod_php5.c>
php_value upload_max_filesize 10M
php_value post_max_size 20M
php_value memory_limit 30M
</IfModule>
  • Like 1
Posted

Thanks both of you, they're both good options, I had temporarily used $_FILES["size"] but will definitely take a closer look at your example Soma.

I'm now getting stuck trying to send the file as an attachment from the same template, the email is getting sent successfully using PHPMailer but the attachment's aren't sending. Have you ever had any issues sending email attachments through PW?

I've tried using the $_FILES temp path as well as the actual $page->files->last() which has just been created on the same template but neither send the attachment. I've also tried using just a test file and that's not sent either. Have you had any experience of this?

This is the code I'm currently using:

https://gist.github.com/anonymous/52b06e0b0dc8f9e5c9d9

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...