2. If I turn on file rename, then upload 2 or 3 images, only the last image gets uploaded by 3 times!This issue was driving me crazy so I decided to dig deep down into the extension and was able to fix this issue. The extension is generating a random filename using a MD5 hash based on the date down to the second and I think the server processes it so fast that multiple files end up getting the same name. So I ended up prepending the date with the filename. I am using version 3.1.1 of the extension. Change the followingto$file_names[$file_key] = $this->_code().$file['ext'];
And…$file_names[$file_key] = $this->_code($file_name).$file['ext'];
should be changed tofunction _code() { return md5(date('U')); }
Hope that this helps others!function _code( $file_name ) { $myhash = $file_name.(date('U')); return md5($myhash); }
Brother you saved me…
I am currently using this extension and have run into an issue. I have had to use exp:query tag and I pull a query including the field_id_50 which is my custom photo field I get the name of the file and nothing else, (i.e. holiday_fireworks.jpg). Now if I run the same with the weblog tag I get the full path (i.e. http://www.example.com/uploads/events/cache/holiday_fireworks-350x250). Am I missing something here, is there a way to pull the path when using the query tag?
hi there,
I am using the latest file extension with almost all of the bugfixes (I keep updating it…). working like a charm. but, since 1.67, if I try to upload a file with the same name that already existst, the “Automagically rename this file the next time it’s uploaded?” has stopped working. it’s not a major thing, but out of completeness, has anybody got a fix for this problem?
–
and (drumroll) if you want to add captions and other stuff or make files sortable then this might be your solution (until LG finds a way to implement files into datamatrix):
http://ellislab.com/forums/viewthread/87125/P54/#494288 working surprisingly well. all the customer has to do is copy/paste the image name…
cheers stefan
I’ve just discovered that 3.1.1, when set to “Auto” size with a “max width” and “max height” defined, that the images produced are ‘gifs’ regardless of the source file.
To make things even more confusing, the extension of the source file provided is saved to the new file. So, if I set my max dimensions to 600 x 600 and upload an image (jpg) larger, the extension does it’s resizing and produces an image that says it’s a jpg but is actually a gif.
How do I know, well, the first clue was the dithering which is indicative of being a gif. And when saving the new image to my machine so I could open in my image editor of choice, I got an error “invalid JPEG marker type found”. I switched the files extension to gif and whala…it opened.
I’m scoured this thread to see if there was anything mentioning this but could not find anything.
Here is a live example. This image is smaller than the set max so the resulting image should look just about the same. Original Produced by the extension
Wondering if anyone might have a fix for this?
Thanks.
I’ve just discovered that 3.1.1, when set to “Auto” size with a “max width” and “max height” defined, that the images produced are ‘gifs’ regardless of the source file. To make things even more confusing, the extension of the source file provided is saved to the new file. So, if I set my max dimensions to 600 x 600 and upload an image (jpg) larger, the extension does it’s resizing and produces an image that says it’s a jpg but is actually a gif. How do I know, well, the first clue was the dithering which is indicative of being a gif. And when saving the new image to my machine so I could open in my image editor of choice, I got an error “invalid JPEG marker type found”. I switched the files extension to gif and whala…it opened. I’m scoured this thread to see if there was anything mentioning this but could not find anything. Here is a live example. This image is smaller than the set max so the resulting image should look just about the same. Original Produced by the extension Wondering if anyone might have a fix for this? Thanks.
you’re not alone 😉 here’s the fix:
http://ellislab.com/forums/viewthread/38997/P360/#335581 http://ellislab.com/forums/viewthread/72506/
cheers stefan
outline4 - thank you, thank you very much! I knew I had seen this fix before but looking thru this thread has become more than outrageous! Unfortunately, it seems to the a necessary evil at this point in time. Regards!
you’re welcome,
someone should take over the file develoment, add all the bugfixes and some of the most requested features… damn… this is still my n°1 extension… coudn’t live without it… and there’s no replacement, or is there?
cheers stefan
I tried to contact Mark Huot about taking it over, but got no response. The file itself is copyrighted, so I can’t just add the fixes and post them here. I’m in the process of rebuilding it from the ground up though, with all of the current problems addressed. I should be able to release the rebuilt extension soon, say… early next week. I’m in the process of testing and bug correction now. So, sooner than later.
I tried to contact Mark Huot about taking it over, but got no response. The file itself is copyrighted, so I can’t just add the fixes and post them here. I’m in the process of rebuilding it from the ground up though, with all of the current problems addressed. I should be able to release the rebuilt extension soon, say… early next week. I’m in the process of testing and bug correction now. So, sooner than later.
uhhh… wow!
will there be custom file fields? like the possibiltiy to add titles, descriptions? will it be sortable?
cheers
Actually, I noticed this last week. Can’t say why I hadn’t earlier…but look at the copyright at the head of the file:
/* ===================================================== Multi Relationship —————————————————– http://docs.markhuot.com/ —————————————————– Copyright (c) 2007 - today Mark Huot ===================================================== THIS MODULE IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND OR NATURE, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. ===================================================== File: ext.mh_multi_relationship_ext.php —————————————————– Purpose: Multiple Relationship Drop Down - EXT ===================================================== */
😊
I’d say this was copied and pasted. And yes, in good faith we all are honoring it.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.