We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

File

Development and Programming

fluctus's avatar
fluctus
13 posts
18 years ago
fluctus's avatar fluctus

thank you mark, for this extension. seems really useful. I have a problem with ee 1.5.1 and the file-extension 1.0.9

when using the upload field, no other entry field is accessible and every click creates a further upload-field (see attached screenshot). this only happens when a file is choosen via the browse button. seems like a javaScript problem. any idea?

oh, seems that it only affects ie(v.7 on winXP). it works perfect under firefox. has anyone experiences with the file-extension on safari and ie?

regards martin

       
Rob Quigley's avatar
Rob Quigley
236 posts
18 years ago
Rob Quigley's avatar Rob Quigley

It seems to work fine for me in FF and IE7 xp. In the Extension settings do you have Allow Multiple Files set to yes or no? If yes, it will create another file select browse box after uploading the previous file. I’m not sure if you are seeing that as the error or if there is something more problematic happening. Sounds like maybe the latter though.

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

This may be a bug with IE7 (surprised?). I can look into a fix in the next version.

       
fluctus's avatar
fluctus
13 posts
18 years ago
fluctus's avatar fluctus

thanx for your reply.

yes, I configured the extension for Multiple Files, and its ok that another file select browse box is created after uploading the previous file. But every further klick creates another one, other custom-fields arent clickabel (results in one more select browse box), never the submit-button.

but i´m glad to hear that other xp/ie7-setups work like yours rob. Ill upgrade my ie7, its still a early beta. it works perfect for me with ie6 /firefox 1.5 /opera 8.51 and I`m really astonished about your effort, mark. Your extensions are really cool. I think 2006 will get a power-boost year for ee-extensions cuz you joined this community.

is there a thread for your mult-reference extension? this causes a blank page when calling the containing publish-form.

rg martin

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

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'
);
       
sigork's avatar
sigork
155 posts
18 years ago
sigork's avatar sigork

Should I upload /icons/.svn/ from the ZIP?

Thanks.

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

Nope, you can delete that, I forgot to myself.

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

It’s since been deleted from the zip. Thanks sigork.

       
Rob Quigley's avatar
Rob Quigley
236 posts
18 years ago
Rob Quigley's avatar Rob Quigley

I just ran into this problem on two test installs: it’s repeated for several fields that I created -

Notice: Undefined index: field_id_22 in /*/system/extensions/ext.file.php on line 534

UPDATE: Ok, So I took out the following code and the error message went away. I take it then I may have coded it in a way that is causing a result that produces this error - ?

<

pre>{!-- HEADLINE ARCHIVE IMAGE & RELATED NEWS LINK --} {if:elseif ts_image_archive != "0" AND ts_related_news != "0"} {related_entries id="ts_related_news"}<a href="http://{permalink=">{/related_entries}{related_entries id="ts_image_archive"}{image_archive}{/related_entries}</a></p> <p>{!-- HEADLINE ARCHIVE IMAGE & CUSTOM URL LINK --} {if:elseif ts_image_archive != "0" AND ts_open_field_link != ""} <a href="http://{ts_open_field_link}">{related_entries id="ts_image_archive"}{image_archive}{/related_entries}</a></p> <p>{!-- HEADLINE ARCHIVE IMAGE & NO URL --} {if:elseif ts_image_archive != "0" AND ts_open_field_link == "" AND ts_related_news == "0"} {related_entries id="ts_image_archive"}{image_archive}{/related_entries}

So what I am doing above is checking to see if the related field is selecte and pulling in a related weblog custom field that uses the “File” upload. When I take the related custom fields out a notice goes away each time

{related_entries id="ts_image_archive"}{image_archive}{/related_entries}
Update: looks like there is a similar problem on another extension using related content: here

       
lithiumdave's avatar
lithiumdave
215 posts
18 years ago
lithiumdave's avatar lithiumdave

Sorry if this has been covered already, and I suspect the answer is ‘no’, but…

Is there any conceivable way that it would be possible to add extra metadata for each file upload? The reason why is that I’d like to add a specific alt attribute value for each image. Also, I’m incorporating this with the Lightbox technique which requires a title attribute to create a caption for each image.

As I say, I suspect there’s no feasible way of doing this, beyond going back to having multiple fixed custom text input fields (img1, img1_caption, img2, img2_caption, etc)

Thanks, Dave

       
Clearpeak's avatar
Clearpeak
413 posts
18 years ago
Clearpeak's avatar Clearpeak

Mark:

I can’t figure out how to delete the image within the edit page after it has been uploaded. I have js enabled. Is this possible?

Thanks

       
Clearpeak's avatar
Clearpeak
413 posts
18 years ago
Clearpeak's avatar Clearpeak

I see. My mistake. I wasn’t hitting save after I was clicking the red button. thanks

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

@fodney: Glad you got it worked out.

@lithiumdave: I’ll look into adding some metadata fields or something comparable, but I can’t promise when this will happen.

       
Rob Quigley's avatar
Rob Quigley
236 posts
18 years ago
Rob Quigley's avatar Rob Quigley

I would like to use this with Phpthumb script but I am running into a problem where I need to output a relative URL or just the file name (file.jpg) itself would do (I can hardcode the url into the template).

Curious if there is a quick and easy way for me to hack the extension to limit to just the file name?

       
Mark Huot's avatar
Mark Huot
587 posts
18 years ago
Mark Huot's avatar Mark Huot

Around line 543 you’ll see this:

$repeating_interior .= str_replace(LD.$f['field_name'].RD, $f['url'].$d, $tags[1][$key]);

if you just remove the

$f['url'].

it will only output the filename. Then it will look like this:

$repeating_interior .= str_replace(LD.$f['field_name'].RD, $d, $tags[1][$key]);
       
First 2 3 4 5 6 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.