5 of 53
5
File
Posted: 05 February 2007 08:46 AM   [ Ignore ]   [ # 73 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  673
Joined  01-05-2006

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.

 Signature 
Profile
 
 
Posted: 05 February 2007 10:52 AM   [ Ignore ]   [ # 74 ]  
Summer Student
Total Posts:  28
Joined  01-13-2006

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.

thanks,
Silvia

Profile
 
 
Posted: 05 February 2007 11:50 AM   [ Ignore ]   [ # 75 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  673
Joined  01-05-2006

silvia, i’m not getting that 404 error, what field are you placing the chosen file into?  what URL is coming up as a 404?  the /system/index.php url?

 Signature 
Profile
 
 
Posted: 10 February 2007 08:20 PM   [ Ignore ]   [ # 76 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  229
Joined  11-16-2004

Mark, fantastic job on this extension. Made my day when i found it.

- T. Payton

 Signature 

T. Payton
OneCreative | Albuquerque, NM

Profile
 
 
Posted: 10 February 2007 08:51 PM   [ Ignore ]   [ # 77 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  229
Joined  11-16-2004
Mark Huot - 03 December 2006 05:12 PM

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:

$data = array(
'hidden_fields' => $hidden_fields,
'action'        => $RET,
'id'            => 'entryform',
); 

and add this line

'enctype' => 'multipart/form-data' 

so it looks something like this

$data = array(
'hidden_fields' => $hidden_fields,
'action'        => $RET,
'id'            => 'entryform',
'enctype'        => 'multipart/form-data'
); 

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:

{if file}
<input type="text" dir="{text_direction}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" onclick="setFieldName(this.name)" />
{/if} 

Any thoughts?

- T. Payton

 Signature 

T. Payton
OneCreative | Albuquerque, NM

Profile
 
 
Posted: 12 February 2007 11:29 AM   [ Ignore ]   [ # 78 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  673
Joined  01-05-2006

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?

 Signature 
Profile
 
 
Posted: 14 February 2007 11:05 AM   [ Ignore ]   [ # 79 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  298
Joined  10-18-2004

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’:

NoticeUndefined variablefield_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?

(File extension 110, EE 1.5.2 build 20070126)

 Signature 

Low: the Pro Network member who brought you Low Variables, Low Reorder, Low NoSpam, Low Seg2Cat and many more...

Profile
 
 
Posted: 14 February 2007 12:55 PM   [ Ignore ]   [ # 80 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  673
Joined  01-05-2006

try this: http://expressionengine.com/forums/viewthread/38843/#181791

 Signature 
Profile
 
 
Posted: 14 February 2007 01:03 PM   [ Ignore ]   [ # 81 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  298
Joined  10-18-2004

Check. Thanks, Mark.

 Signature 

Low: the Pro Network member who brought you Low Variables, Low Reorder, Low NoSpam, Low Seg2Cat and many more...

Profile
 
 
Posted: 15 February 2007 11:54 AM   [ Ignore ]   [ # 82 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  653
Joined  07-18-2006

One issue and one question smile

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?

Thanks!

Profile
 
 
Posted: 15 February 2007 11:57 AM   [ Ignore ]   [ # 83 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  673
Joined  01-05-2006

check here for the syntax: http://expressionengine.com/forums/viewthread/38997/#181203 and as for your problems uploading multiple files, what browser and OS are you using?  I’ll have to debug that I haven’t seen it before.

 Signature 
Profile
 
 
Posted: 15 February 2007 12:29 PM   [ Ignore ]   [ # 84 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  653
Joined  07-18-2006

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?

Profile
 
 
Posted: 15 February 2007 12:57 PM   [ Ignore ]   [ # 85 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  653
Joined  07-18-2006

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!

Sorry for crying wolf…

Profile
 
 
Posted: 15 February 2007 03:06 PM   [ Ignore ]   [ # 86 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  258
Joined  09-16-2004

Hi,

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:

NoticeUninitialized string offset0 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.

Any help very much appreciated, many thanks!

PS: I’m using File 1.0.7

 Signature 

Definition // Simply effective websites - web design based in Hull and East Yorkshire

Profile
 
 
Posted: 16 February 2007 12:49 PM   [ Ignore ]   [ # 87 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  673
Joined  01-05-2006

hum…file 1.0.7 is rather old.  this should be fixed in the version at the top of the thread.

 Signature 
Profile
 
 
Posted: 16 February 2007 01:02 PM   [ Ignore ]   [ # 88 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  258
Joined  09-16-2004

Ah! I presumed the one on your site would be up-to-date. Thanks very much Mark : )

Dave

 Signature 

Definition // Simply effective websites - web design based in Hull and East Yorkshire

Profile
 
 
Posted: 23 February 2007 10:30 AM   [ Ignore ]   [ # 89 ]  
Grad Student
Rank
Total Posts:  96
Joined  02-23-2007

Hi Mark, i really like this extension. Is there any chance I can set multiple file/single file upload per weblog?

Profile
 
 
Posted: 23 February 2007 10:46 AM   [ Ignore ]   [ # 90 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  673
Joined  01-05-2006

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:

if($row['field_ta_rows'== 1)
{
$this
->settings['allow_multiple''yes';
}
else
{
$this
->settings['allow_multiple''no';

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.

 Signature 
Profile
 
 
   
5 of 53
5