Problems Uploading a File



I have a script that uploads a JPG and then resizes it. it works fine
with files up to abouot 1.6M, but when i try a file that is about 4M i
get the following error message:

Fatal error: Out of memory (allocated 33292288) (tried to allocate
15552 bytes) in path-to/includes/file-upload-resize.inc.php on line 83

were line 83 is:
$source_image = imagecreatefromjpeg($source_image_URL);
(which seems to fail because the upload fails, but it works with
smaller file sizes)

looking at the php.ini of my hosting service i gatherer the following:
max_execution_time 50000 50000
memory_limit 40M 40M
upload_max_filesize 20M 20M

which seems to be enough for waht i want. i also tried changing the
max execution time:
ini_set('max_execution_time', 100000);

the form has a big enough max file size:
<input type="hidden" name="MAX_FILE_SIZE" value="8000000" />

how can i make this work providing that my server seems to have big
enough limits?
Am I overlooking some parameter?

thank you very much,

NN

.



Relevant Pages

  • Re: Max File Size exceeded
    ... You are probably referring to>2mb filesize. ... setting in php.ini for uploads are 2 MB. ... modify php.ini on the server to handle larger files. ... > error message, instead the warning outputed: ...
    (php.general)
  • Re: Error when Uploading Document to PWA Document Library
    ... document however uploads successfully to the PWA document ... Troubleshooting steps taken so far: ... Create new library, test upload, same error message. ... Only affects project sites, SharePoint sites do not have this issue when ...
    (microsoft.public.project)
  • Error when Uploading Document to PWA Document Library
    ... "You do not have permission to view this page", ... document however uploads successfully to the PWA document ... Create new library, test upload, same error message. ... Only affects project sites, SharePoint sites do not have this issue when ...
    (microsoft.public.project)