How to upload a large file?
I tried to upload a large file (3,62Mb (4912×3264)) and got error
Warning: array_merge(): Argument #2 is not an array in filefield_widget_value() (line 255 of /var/www/justintime/live/sites/default/modules/filefield/filefield_widget.inc).
http://live.justintime.gotpantheon.com/node/4263/edit
File not show http://live.justintime.gotpantheon.com/my-galleries/3
http://live.justintime.gotpantheon.com/galleries/my-gallery/dsc02500jpg
This file here http://img-vvostok.fotki.yandex.ru/get/4517/662864.1/0_4814f_8934a41_orig

Comments

arturus-1’s picture

scroogie’s picture

How did you try to upload the file? With the bulk upload tool or the HTML upload? Did you get any other error messages?
Probably its just the maximum file size that is restricted in the filefield settings, the default value is 3 MB. You can change that in the field settings on your own page. On the demo page it's a sensible default, so it does not grow too much.

arturus-1’s picture

I upload the file on test site http://live.justintime.gotpantheon.com using runtime html5
A create gallery with big files and files not show http://live.justintime.gotpantheon.com/galleries/gallery-big-files/dsc02...

arturus-1’s picture

On my site i have maximum file size in the filefield settings 20Mb. But i can not upload a file more 3 Mb. After downloading the file more 3 Mb I get a blank image.

scroogie’s picture

I see. Which ImageAPI backend are you using? GD or imagemagick? Perhaps it's the memory limit.

arturus-1’s picture

I using ImageAPI GD2
memory_limit 32M
post_max_size 40M
upload_max_filesize 32M

scroogie’s picture

Well, I guess that explains it. GD uses RGBA with 8 bit per channel -> 32 bit per Pixel. Meaning that picture takes 4912 x 3264 x 4 bytes == 61 MB of memory when trying to create the thumbnail.

Try using the imagemagick implementation. If your server runs on Linux, you almost certainly have convert and the other binaries available at /usr/bin/convert or /usr/local/bin/convert.

dddave’s picture

Category: bug » support
Status: Active » Fixed

Running Drupal with 32M is pretty low and the usage of imagecache requires much more. I think the last time I checked 96M were recommended when using imagecache.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.