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

Matt Weinberg's avatar
Matt Weinberg
489 posts
17 years ago
Matt Weinberg's avatar Matt Weinberg

I had the same issue. I posted my workaround earlier in the thread– these two posts:

Post 1: http://ellislab.com/forums/viewthread/38997/P342/#334387 (the idea) Post 2: http://ellislab.com/forums/viewthread/38997/P342/#335189 (the code)

Hope that helps, -Matt

       
Dane Thomas's avatar
Dane Thomas
139 posts
17 years ago
Dane Thomas's avatar Dane Thomas
I had the same issue. I posted my workaround earlier in the thread– these two posts: Post 1: http://ellislab.com/forums/viewthread/38997/P342/#334387 (the idea) Post 2: http://ellislab.com/forums/viewthread/38997/P342/#335189 (the code) Hope that helps, -Matt

Ah thats great.

Thanks.

       
Qrat's avatar
Qrat
40 posts
17 years ago
Qrat's avatar Qrat
Guys, somebody “married” this extension with SAEF?
Are you asking if anyone has done so?

I can’t understand where should I place this code

2nd. You will need add this javascript. 

function addRow( self )
    {
        if(typeof(self) != "object") self = this;
        if(!self.nodeName || self.nodeName != "INPUT") self = this;

And if it mod.weblog_standalone.php, so, in what part? Where is start of </script>

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

This thread is getting out of control. When the devil was 3.1.1 released and what did it fix?

       
Dane Thomas's avatar
Dane Thomas
139 posts
17 years ago
Dane Thomas's avatar Dane Thomas
I had the same issue. I posted my workaround earlier in the thread– these two posts: Post 1: http://ellislab.com/forums/viewthread/38997/P342/#334387 (the idea) Post 2: http://ellislab.com/forums/viewthread/38997/P342/#335189 (the code) Hope that helps, -Matt

Hmm it seems I was a little premature - it works for the first description - but all subsequent images have the 1st line’s caption.

Any idea?

       
Bruce2005's avatar
Bruce2005
536 posts
17 years ago
Bruce2005's avatar Bruce2005

@ Jermaine M

Thank you, that fixed it! I was getting one image repeating for several different images.

       
Matt Weinberg's avatar
Matt Weinberg
489 posts
17 years ago
Matt Weinberg's avatar Matt Weinberg
Hmm it seems I was a little premature - it works for the first description - but all subsequent images have the 1st line’s caption. Any idea?

Can you post your code? Are you using a textarea custom field and putting a hard linebreak between each one?

       
David Boyer's avatar
David Boyer
12 posts
17 years ago
David Boyer's avatar David Boyer

I’m still battling this error and I’m really at a lost for a solution. The error occurs when I try to modify the settings of the File Upload Preferences with Mark Huot’s File extension. The strange thing is the extension worked at one time and its got me fluxomed what changes have occurred that could be responsible.

I’m starting to get a bit desperate for a solution with a deadline looming. If anybody has a tip to try I would be so very appreciative.

MySQL ERROR:

Error Number: 1064

Description: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON DUPLICATE KEY UPDATE id=values(id), `key`=values(`key`), val

Query: INSERT INTO exp_mh_file VALUES('', 8, 'allow_multiple', 'no') ON DUPLICATE KEY UPDATE id=values(id), `key`=values(`key`), value=values(value)
       
Dane Thomas's avatar
Dane Thomas
139 posts
17 years ago
Dane Thomas's avatar Dane Thomas
I’m still battling this error and I’m really at a lost for a solution. The error occurs when I try to modify the settings of the File Upload Preferences with Mark Huot’s File extension. The strange thing is the extension worked at one time and its got me fluxomed what changes have occurred that could be responsible. I’m starting to get a bit desperate for a solution with a deadline looming. If anybody has a tip to try I would be so very appreciative.
MySQL ERROR:

Error Number: 1064

Description: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON DUPLICATE KEY UPDATE id=values(id), `key`=values(`key`), val

Query: INSERT INTO exp_mh_file VALUES('', 8, 'allow_multiple', 'no') ON DUPLICATE KEY UPDATE id=values(id), `key`=values(`key`), value=values(value)

Just upgrade to the latest version and thats fixed.

       
David Boyer's avatar
David Boyer
12 posts
17 years ago
David Boyer's avatar David Boyer
Just upgrade to the latest version and thats fixed.

I’m using the most current version; 3.1.1 and I still encounter the error.

       
Qrat's avatar
Qrat
40 posts
17 years ago
Qrat's avatar Qrat

Guys, I have next problem I use code in SAEF http://ellislab.com/forums/viewreply/196559/ Include JS in template and paste



Message after submittion: Image Uploader Extension: upload_field must be submitted in form

Any ideas?

       
Bruce2005's avatar
Bruce2005
536 posts
17 years ago
Bruce2005's avatar Bruce2005

In the docs it has:

{images backspace="6"}
{if file_path}{file_path}
{/if}
{if file_thumb_path}{file_thumb_path}
{/if}
{/images}

But when I try using conditionals it doesn’t work. Any ideas how to? .

       
Matt Weinberg's avatar
Matt Weinberg
489 posts
17 years ago
Matt Weinberg's avatar Matt Weinberg

Are you using conditionals like that, on file_path? What about using {if file_path != ''}?

       
Bruce2005's avatar
Bruce2005
536 posts
17 years ago
Bruce2005's avatar Bruce2005

That is directly from the file docson Marks site.

I tried the above:

{file_ext}
{if file_thumb_path != ''}{file_thumb_path}
{/if}
{if file_path != ''}{file_path}
{/if}
{/file_ext}

file_ext is the field name. Actually, over the past 5 hours I have tried everything, trying to have an image show if it’s an image, a file path if a file. seems impossible to do. Looks like one can’t have two on the same page either, tried adding 2 extensions, one for images, one for files, no go.

This works for multiple images:

{if file_ext}
Uploading multiple images using the file extension.
{file_ext}
<a href="http://{file_url}">{file_thumb_url}</a> 
{/file_ext} 
{/if}

Thanks for answering! .

       
Matt Weinberg's avatar
Matt Weinberg
489 posts
17 years ago
Matt Weinberg's avatar Matt Weinberg

You can have two– I do it on some pages (using different custom fields, and the same custom field in 2 places). If you use the {field} {/field} setup it repeats. Otherwise it should just use the first file listed.

Are your two times using the same custom field? What if you do it once?

If you don’t use conditionals, do the values come up?

       
First 27 28 29 30 31 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.