Skip to content
Advertisement

Tag: filesize

filesize(): stat failed for specific path – php

i am coding a simple doc managing script and need to get the file size and file type /file or folder/ in a table. somehow it doesn’t work into the mention directory. please help if possible: it does actually has 2 errors – one the file size doesn’t work for the location, if i change it to path to “.”

s3 direct upload restricting file size and type

A newbie question but I have googled abit and can’t seem to find any solution. I want to allow users to directly upload files to S3, not via my server first. By doing so, is there any way the files can be checked for size limit and permitted types before actually uploading to S3? Preferably not to use flash but

Is there some limit on a size of a file when causing a download with PHP?

Trying to force-download file with PHP using usual: And it does successfully for files somewhere below 32 mb. For bigger ones it just returns zeroed file. Obviously there’s some kind of limit, but what sets it? Using Apache 2.2.11 and PHP 5.3.0. Answer I eventually stumbled on this post: http://w-shadow.com/blog/2007/08/12/how-to-force-file-download-with-php/. Adding all the headers recommended there and also using: before

Advertisement