PHP Upload is set to 32Mb and I had my host temporarily set memory from 32Mb to 128 for testing purposes - anything else you guys can think of?
How about “post_max_size”? I’m not sure but I think the default is set to 8M which would account for why you’re unable to upload files larger than 10M.
got it sorted with my host www.geeksrv.net (hope that doesn’t break rules? but I can’t speak highly enough of them).
Upped the limit for POST to 12mb as that was set at 8mb - although file upload is set higher the $_POST variable was only allowed to upload 8mb.
Thanks for this awesome extension!
However I ran into problems on a site that features several very large video files (up to 800 mb). When trying to add or edit an entry the page was loading forever. I figured it had something to do with the size of the files since the issue only came up in one weblog.
The problem is the method which checks if a file is an image or not. To do so it runs exif_imagetype() on a file which doesn’t play nice with very large (video) files. The server was completely overstrained.
I added a simple file extension check to ensure that exif_imagetype() will only be executed on files which seem to be image files which solved the issue.
//
// Checks if a file is an image
//
function _is_image($file) {
$is_image = false;
$file = trim($file);
// Check for extension first to avoid running exif_imagetype()
// on (possibly large) non-image files.
if(preg_match('/^.+\.(gif|jpg|jpeg|png|bmp)$/i', $file) === 1) {
switch( exif_imagetype($file) ) {
case IMAGETYPE_GIF:
case IMAGETYPE_BMP:
case IMAGETYPE_JPEG:
case IMAGETYPE_PNG:
$is_image = true;
break;
}
}
return $is_image;
}
//
You may want to include this in the next version of the fieldtype. Keep up the great work! 😊
This is a really excellent extension and i cant thank you enough.
However, when using with saef, i noticed that it uses the css file within the admin area. Basically it reveals the renamed ‘system’ folder path. This is could be a security violation?
Apologies if they has been mentioned previously but i thought id bring it up.
Thanks for this awesome extension! However I ran into problems on a site that features several very large video files (up to 800 mb). When trying to add or edit an entry the page was loading forever. I figured it had something to do with the size of the files since the issue only came up in one weblog. The problem is the method which checks if a file is an image or not. To do so it runs exif_imagetype() on a file which doesn’t play nice with very large (video) files. The server was completely overstrained. I added a simple file extension check to ensure that exif_imagetype() will only be executed on files which seem to be image files which solved the issue.You may want to include this in the next version of the fieldtype. Keep up the great work! 😊// // Checks if a file is an image // function _is_image($file) { $is_image = false; $file = trim($file); // Check for extension first to avoid running exif_imagetype() // on (possibly large) non-image files. if(preg_match('/^.+\.(gif|jpg|jpeg|png|bmp)$/i', $file) === 1) { switch( exif_imagetype($file) ) { case IMAGETYPE_GIF: case IMAGETYPE_BMP: case IMAGETYPE_JPEG: case IMAGETYPE_PNG: $is_image = true; break; } } return $is_image; } //
Nice addition. Thanks!
Hello I’m just trying to set up nGen Field and FieldFrame, when I try to add a new field and set it to FF Matrix, I’m supposed to get a matrix - I’m not getting anything.
Firebug shows me the following errors: nGenFile is not defined [Break on this error] [removed]\nindex.ph…roup_id=1 (line 2543) jQuery.fn.ffMatrixConf is undefined [Break on this error] jQuery(window).bind(“load”, function() {\n
Am I missing anything or is there something wrong with the extensions?
Thank you in advance for your help.
mmjaeger - Do you have the most recent version of jquery for the Control Panel installed and enabled? (Should be 1.1.2) If not, you can download here:
can i ask if anyone knows… should this extension resize images when the upload preferences have a set maximum size. for example my upload preference sets a folder, and max width of 900px. therefore if i upload a larger image should this be resized down to 900? i am comparing to mark huots file - which i know used to do this - but had plenty of other bugs and i prefer this!
Hey, Thanks for the update, and yes i too am using Lumis imgsizer. I don’t know why, probably mixing this up with Mark Huots file - i thought this did resize images. I guess when it said in the docs that it used preferences i assumed! Thanks for the reply, no worries i can code around this anyway. N
If you’ve had an issue with File field recently please PM me so I may work with you one on one. It seems the thread has not been notifying me of updates.
When sending me information about your issue please be as descriptive as possible, include login/url for CP access, and FTP access if possible. This will help me just get in there to research and help resolve your issue.
Thanks for your understanding and for using the File Field!
I’m having the same issue for uploading large video files as described by smit and Todd D. I tried the code they reference. Here’s what I’m using:
// Checks if a file is an image
//
function _is_image($file) {
$is_image = false;
// legacy for MH File compatibility
$file = trim($file);
// Check for extension first to avoid running exif_imagetype()
// on (possibly large) non-image files.
if(preg_match('/^.+\.(gif|jpg|jpeg|png|bmp)$/i', $file) === 1) {
switch( exif_imagetype($file) ) {
case IMAGETYPE_GIF:
case IMAGETYPE_BMP:
case IMAGETYPE_JPEG:
case IMAGETYPE_PNG:
$is_image = true;
break;
}
}
return $is_image;
}
//
That should be same as smit posted above. It’s still not working. I’m still getting a white screen in the CP. (see the attached screenshot).
Any thoughts on what the issue could be?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.