Jump to content

Limiting file upload size


onjegolders
 Share

Recommended Posts

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

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
 Share

×
×
  • Create New...