I have an ajax form where I am trying to upload a 30MB PDF. When I upload a file upto 10MB the file upload correctly but when I attempt to upload a file larger than 10MB the file is not uploaded properly, when I look into the C:\windows\temp file I can see the file is uploading but once it hits between 8-10MB a new temp file it created when this 2nd file hits about 8MB the files stops uploading.  The loaded PHP settings are as follows:- Version: 5.2.17    max_execution_time = 3600   max_input_time = 3600   memory_limit = 1024M   post_max_size = 5G   upload_max_filesize = 5G     Has anybody had this problem before? How am I able to fix this issue?
121410
Hi im quite new to PHP, i have created a form for very large csv files to be uploaded to my server. Some one mentioned to me that the browser can time out due to the uploading file being to big, is this true? and if so, can it be prevented?  Thanks for your help!
7478
I would like to upload a file asynchronously with jQuery.     $(document).ready(function () {     $("#uploadbutton").click(function () {         var filename = $("#file").val();          $.ajax({             type: "POST",             url: "addFile.do",             enctype: 'multipart/form-data',             data: {                 file: filename             },             success: function () {                 alert("Data Uploaded: ");             }         });     }); }); &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"&gt;&lt;/script&gt; &lt;span&gt;File&lt;/span&gt; &lt;input type="file" id="file" name="file" size="10"/&gt; &lt;input id="uploadbutton" type="button" value="Upload"/&gt;     Instead of the file being uploaded, I am only getting the filename. What can I do to fix this problem?
24590
I am using &lt;input type="file" id="fileUpload" runat="server"&gt; to upload a file in an ASP.NET application. I would like to limit the file type of the upload (example: limit to .xls or .xlsx file extensions).   Both JavaScript or server-side validation are OK (as long as the server side validation would take place before the files are being uploaded - there could be some very large files uploaded, so any validation needs to take place before the actual files are uploaded).
101635
The size of the file is 168mb and it's nearly impossible to work on the file because every action takes like five minutes or so to complete. The artwork is of a scene filled with characters and I so far outlined the entire thing with a brush and afterwards expanded all the strokes thinking it would help ease the load. However, the file is still way too big. Is there something I can do to make it easier to work on the file?  Edit: I flattened transparency and got it reduced to 33mb. Huge difference, but would like it even smaller if possible.
24754
I need an easy way to allow users to upload multiple files at once (ie I need to allow a user to upload a folder).  I do not wish to put the burden of zipping on the user.    I would prefer to avoid Flash or variants if possible.  I'm looking for a straight javascript / HTML solution if it is possible.  Please note, this rules out the answers at: .
88861
I don't want to use jQuery, but I'd like to use Ajax to do file uploading. Is that possible?  If so, where can I find information/tutorial on it?
19568
I made a huge project, wanted to reduce file size from 1.3GB to below 1GB. Compressing did not help. I removed objects from scene. Also textures. I then realized, the file size even was the same when I delete ALL objects. Why?  Download of sample:   Before deleting all: 1.2GB, after: 1.1GB.
116431
What sets the size of the tmpfs? (On my machine it resides in /dev/shm) I can see its entry in /etc/fstab, but no notation of its size. When checking with df -h, it seems to be half the size of the physical memory installed in the system. Is this the default behavior?  Also, what happens if it gets full? Does it expand dynamically forcing other running programs into swap? Does tmpfs itself moves into swap partition?   Finally, what takes priority into the memory tmpfs or applications? i.e., if I have tmpfs sufficiently full (like 40% of the physical memory) and I have programs that requires 70% of the physical memory, which one gets the priority?
38877
I was trying to upload a gif file (4MB) into a post. I get the following error:     For security reasons, framing is not allowed. Click OK to remove the frames.   See this gif screenshot (click  if it doesn't play):    Why I am getting this error? Is the size of the file a reason?  Same story is here, on meta, when trying to upload same file.
105999
Traditionally  at the end of a filename after uploading it via the image uploader. That doesn't seem to work any more. I've tested it on Q&amp;A as well as chat.        (Yes, I know big M doesn't work)  Could we have this fixed please?
14007
How can I quickly create a large file on a Linux () system?   will do the job, but reading from /dev/zero and writing to the drive can take a long time when you need a file several hundreds of GBs in size for testing... If you need to do that repeatedly, the time really adds up.  I don't care about the contents of the file, I just want it to be created quickly. How can this be done?  Using a sparse file won't work for this. I need the file to be allocated disk space.
54938
I have a database, that due to some silly code issues has grown hugely. It is now sitting at 24GB, most of it is very unnecessary logging information (system generated debug information).  My server lives on a cloud hosted server. I am now sitting with 2 issues because of the file size:   I pay for storage. I am happy to pay for my core business, but paying for silly data seems....silly My backups are now huge also. I do nightly full backups, and then ship them off to an FTP server. This process is taking longer and longer.   Given my issues, is shrinking so bad? I will rebuild all my indexes. I did a dry run, and brought my database down to 6GB.  This guy (who I have always trusted as my SQL guru), says it's bad....mkay
87644
I have created the "Gallery" content type, and added two fields: "photo," and "document." I then used the following code for uploading a file in the "document" field:  $file = file_save_upload('document', array(     'file_validate_extensions' =&gt; array('txt doc'), // Validate extensions. ));  // If the file passed validation: if ($file) { // Move the file, into the Drupal file system if ($file = file_move($file, 'public://')) {   $file-&gt;status = FILE_STATUS_PERMANENT;  // $file-&gt;file_display = 1;   $file = file_save($file);  } else {   $output = t('Failed to write the uploaded file the site\'s file folder.'); }         } else { $output = t('No file was uploaded.');  }   I am attaching this file to the node using the following code:  $customNode-&gt;field_document[$customNode-&gt;language][0] = (array)$file;   When I call node_submit() function, I get the following error:     Integrity constraint violation: 1048 Column 'field_document_display' cannot be null    Does anybody know what I am doing wrong?
40522
My laptop has Windows 7 home premium. OS is installed on C drive. The C drive has some 155 GB but currently only 1.17 GB is free. I deleted contents of my download folder and moved the contents from my desktop and my documents. this freed some 50 GB. but within minutes it was full again. ran disk cleanup and gained some 2 GB. i checked size of all the folders ignored large sized windows and program files and program files (x86). Was baffled when users folder said 110 GB. went to my user folder and selected all files n checked properties it showed under 5 GB. So if i check my user folders properties it says 110 GB but if i check properties of its content its under 5 GB. BTW I am not using any anti virus program. Do you guys have any idea whats going on. Is my laptop possessed or something? :P Please help me out.
11380
How to upload a file of size 2GB from Apex? Is there any sobject that I can make use of?
121373
Good Morning Friends,  I am creating a Visualforce for my users to upload photos and these photos are saved in the attachments object, but I wonder if there is any way before the picture is saved I can give a resize the image to 800x600 when the image is larger than this size, if less is saved normally.  Could anyone help me in this task? Thanks to all
113157
I dunno since when, but upload of PDF images fails, this hurts especially on tex.SE.  Could this be an effect of an updated /etc/ImageMagick-6/policy.xml on the imgur server?  At least on my Ubuntu 18.04 LTS machine, this file was modified two weeks ago.