Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
arturus-1 CreditAttribution: arturus-1 commentedLarge file no original
http://live.justintime.gotpantheon.com/galleries/group-1-gallery-2/dsc02...
Comment #2
scroogie CreditAttribution: scroogie commentedHow 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.
Comment #3
arturus-1 CreditAttribution: arturus-1 commentedI 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...
Comment #4
arturus-1 CreditAttribution: arturus-1 commentedOn 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.
Comment #5
scroogie CreditAttribution: scroogie commentedI see. Which ImageAPI backend are you using? GD or imagemagick? Perhaps it's the memory limit.
Comment #6
arturus-1 CreditAttribution: arturus-1 commentedI using ImageAPI GD2
memory_limit 32M
post_max_size 40M
upload_max_filesize 32M
Comment #7
scroogie CreditAttribution: scroogie commentedWell, 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.
Comment #8
dddave CreditAttribution: dddave commentedRunning 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.