Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

File upload too large

Tags:

coldfusion

I use cffile action="Upload", and it works just fine for smaller files. But yesterday, I tried uploading a 42Meg pdf and it just sat there all night long.

Q: Is there something I should know regarding uploading larger files? I define larger as: the one that sat there all night long and never timed out and never uploaded. For instance, is there a cflib or Riaforge routine that was written to handle larger files?

Right now I'm at version 8 at hosting.com.

like image 463
Phillip Senn Avatar asked Jul 28 '10 15:07

Phillip Senn


People also ask

How do I make a PDF file smaller so I can upload it?

In the latest version of Adobe Acrobat, open the PDF you wish to re-save as a smaller file, choose File, Save as Other, and then Reduced Size PDF. You'll be prompted to select the version compatibility you need — it defaults to Retain existing to keep the current file settings — and then you can click OK to save.

Why is my PDF file so large?

First, PDFs can be oversized because one or more fonts have been embedded and subset inside that specific PDF file. In fact, adding a single font to a PDF document can sometimes increase the file size substantially. Second, images can also be a culprit.


2 Answers

In addition to the file upload limits in CF, most web servers (Apache, IIS, etc) have an upload limit. Check that as well.

like image 151
Ben Doom Avatar answered Nov 01 '22 23:11

Ben Doom


You can change setting in CFadministrator > settings > Request Size Limits

like image 39
PPShein Avatar answered Nov 01 '22 23:11

PPShein