silviapestalozzi, what browser are you using? the extension ‘shouldn’t’ interfere with the default EE upload, and I’ve just tested it in firefox/ie, both of which functioned as I would expect.
jtnt, updating this to work in IE is at the top of my list.
mark,
thank You for all that great work on improving EE!
I’m using firefox 2 on osX: I’m using it as a single image field and as long as I keep loading images from my local source, all works fine. But if I delete an Image from the file field, hit publish and afterwards choose another image from the server via the EE upload popup (URL button) and publish again, i’m getting a 404 “Url not found”. Maybe it can’t deal with the (filedir_x) supplied by EE?
Thing is: the upload part of “File” is real easy for the less computer savy user, but as soon as they change their mind and want another image which is already uploaded it gets complicated.
You know, that Files Extention of yours almost had it all covered, selecting with thumbnails feedback, add a choose/upload button and you have a great little file selector.
I’ve updated the extension to 1.1.0. It fixes just a few small bugs where incomplete URL’s were being added to the template where no image was uploaded. Also if you’re using this extension in the SAEF you’ll have to modify your mod.weblog_standalone.php file within the /system/modules/weblog/ folder. Find the following line:
So I made these mods for using with SAEF, however, my form is still only just showing the field label without a text field entry, or better yet a browse button. Do you have to hard code the field in the form or should the entry form loop of custom fields pick it up? I tried to add an “if file” to the entry form logic but no avail:
tpayton, because of the way the saef is implemented you’ll have to hardcode the form field. I think the way other people have done it is to just copy-paste the field’s source from the control panel… maybe someone else can chime in on how they managed to implement this?
I get this error in the Control Panel (CP Home › Admin › Weblog Administration › Field Groups › Custom Fields) when the first field in the group is a ‘File’:
Notice: Undefined variable: field_type in [...]/cp/cp.publish_ad.php on line 5470
If I change the type to ‘text’, or if the File field isn’t the first one, no notice is given. Can anyone confirm this?
Only the last file is uploaded even though I have put multiple files in the entry. I can go back and edit and it will add one more new one (if I enter 3 in the edit form, again only the last of the 3 is added to whatever is already there).
And a question:
How do you show all multiple files in a template? If I just put {my_file_field) it only gives the first one?
Mark I’m on OS X (10.4.8) using FF, although I’ve tried in Safari as well as XP IE 6. Hmmm - I just tried updating an entry again that has one file already, and it wouldn’t upload any new ones at all - just keeps the one existing one.
I’m guessing it’s probably a conflict with another extension I have loaded? I’m using these extensions:
Custom Fields in EE Tags
Disable pMachine News Feed
File
Geo Coordinates
Multi Text
I have a geo coord field, a file field and a multi-text field all in this entry form. Could that be an issue?
Mark - once again I should have kept digging before posting my issue. Turns out I was hitting file size limits on the files I was trying to upload. I think error reporting would be a good idea on this extension!
I’ve had the ‘file’ extension running on a few sites recently with no problems, but with this particular site I’m working on I keep getting an error at the top of any entry page where i’ve previously uploaded a file:
Notice: Uninitialized string offset: 0 in /path_to_web_root/system/extensions/ext.file.php on line 420
I’ve cleared caches and have upgraded to EE Core 1.5.2 (Build: 20070126) (I was previously EE Core 1.5.0)
I’ve tried deleting whole entries and starting again, but still the same error. No problem when first opening the entry (before uploading a file) and no problem further if I don’t actually upload anything, only once returning to edit the entry containing an uploaded file.
The files get uploaded using the extension no problem at all, just the weird error at top of page. I’ve done a search of the forums but only find solutions to clear the cache, which I’ve done.
hum…not currently, but it’s something to think about for the future. If you’re into hacking your own version you’d want to place some code at the top of the publish() function. Something to this effect:
Then when setting your file field, before saving, switch it to a text area and set the rows to 1 if you want multiple uploads or anything else if you don’t. Oh, and don’t forget to switch it back to a file field before saving.