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

Simple Uploader placing images in the wrong fields

Development and Programming

noregt's avatar
noregt
360 posts
16 years ago
noregt's avatar noregt

There appears to be a problem with the simple uploader extension form Paul Burdick in conjunction with the newer EE releases. It’s not a major issue, but annoying enough for me to disable it.

In the extension you can specify in which field you want the image to be placed in:

var $field_id = '1';

If I upload an image with this setting, the code will be placed in field ‘2’. If I specify field 2, it will be placed in field three. I tried the last field to see what happens then; I get a blank screen. I also tried field ‘0’ hoping it would place the image in field ‘1’, but that also results in a blank page.

Kind regards Henk

       
Robin Sowell's avatar
Robin Sowell
13,160 posts
16 years ago
Robin Sowell's avatar Robin Sowell

That’s a bit odd. Let me see if I can confirm. It’s a first party plugin, so we maintain it.

       
Robin Sowell's avatar
Robin Sowell
13,160 posts
16 years ago
Robin Sowell's avatar Robin Sowell

Very odd- I’m not replicating with latest EE and latest copy of the extension. No other extensions installed and a SAEF striaght out of the docks- put the image in a textarea field.

Do you run into the same thing if you use a stock SAEF? And what other extensions are installed?

       
noregt's avatar
noregt
360 posts
16 years ago
noregt's avatar noregt

OK, first, I am using 1.6.5, but was thinking that that wouldn’t make much of a difference. I am not using any SAEF, it’s straight input at the CP. If you use it with a new entry in the CP are you able to replicate it?

I will try it with another installation, see what that brings.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

I didn’t think that extension worked in the control panel does it? Isn’t it just meant for an SAEF?

Is this the extension you mean noregt?

Best wishes,

Mark

       
noregt's avatar
noregt
360 posts
16 years ago
noregt's avatar noregt

Duh, I missed that! But still…

The odd thing is that is DOES work in the CP, even if it’s not meant to do that? Once installed it disables the normal file upload whether it’s through the SAEF or the CP.

I just tested another installation on the same server, but version 1.6.2, and there the files are placed in the proper field.

PS; no other extensions or anything. Pretty bare bones version. I did rename the fields.

       
Robin Sowell's avatar
Robin Sowell
13,160 posts
16 years ago
Robin Sowell's avatar Robin Sowell

Um- hm. Yep, it takes over the cp for me as well. From the docs, I wouldn’t expect it. And if you have more than one file upload pref, it kinda negates it. I really thought it was SAEF specific.

Let me poke a bit more.

       
Robin Sowell's avatar
Robin Sowell
13,160 posts
16 years ago
Robin Sowell's avatar Robin Sowell

OK- after consulting, it looks like it completely takes over if installed- SAEF and the CP.

So no buginess there. But- I still can’t replicate how it’s getting ‘off’ on your field ids. Not replicating on mine.

Are you dead sure you’ve got the field id number correct? If you go to edit the field in question- in the url you’ll see the id http://mysite.com/system/index.php?S=&C=admin&M=blog_admin&P=edit_field&field_id=13

The field_id for that one is 13. No chance you’re looking at an order number or something that might be off by one?

       
noregt's avatar
noregt
360 posts
16 years ago
noregt's avatar noregt

OK, my mistake.

I now see I was looking at the field order number and not at the field id!

Once I put in the id number, the image is placed in the correct area. So, despite the fact that it comes as a surprise that the extension works in the CP as well, it works as it should.

Thanks!

       
Robin Sowell's avatar
Robin Sowell
13,160 posts
16 years ago
Robin Sowell's avatar Robin Sowell

LOL- we both learn something! Glad you got the goofiness ironed out.

       

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.