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

Adam George's avatar
Adam George
283 posts
17 years ago
Adam George's avatar Adam George

Hi DMT

I believe this is a well-documented EE problem. Check this same thread for details and fixes.

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

Not a EE problem, just a problem with extensions adding custom field types, read more here:

http://ellislab.com/forums/viewthread/38843/#181791

       
Steve [at] Gleam.'s avatar
Steve [at] Gleam.
27 posts
17 years ago
Steve [at] Gleam.'s avatar Steve [at] Gleam.

Hi Mark,

Does this extension work on an IIS Box? Seems to not show images or upload them. Not my choice of server but client is on it and has no desire to change. This was working fine on my development server on mt.

Might have something to do with the / in server path on linux and \ on windows.

Maybe have a setting in the extension to choose which type of server you are on?

Cheers, Steve

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

@Steve [at] Gleam. There’s no reason it shouldn’t work. You may have to set the server path absolutely though (C:). What is not working about it on IIS?

       
Steve [at] Gleam.'s avatar
Steve [at] Gleam.
27 posts
17 years ago
Steve [at] Gleam.'s avatar Steve [at] Gleam.

Hi Mark,

Well if I try to upload a new file I get:

Error: There was a problem uploading ‘field_name’.

If I turn an existing text field to a file field I get broken images as it seems to add the image path twice but one hasn’t been translated from ee code yet.

http://www.domain.com/path/to/images/https://ellislab.com/asset/images/ent-partner-work/image.gif

Should be…

http://www.domain.com/path/to/images/image.gif

If I use normal field with a normal ee upload it works just fine. So my upload paths must be right.

Server Path.

D:\Inetpub\www.domain.com\path\to\images\uploads\

Server URL.

http://www.domain.com/path/to/images/uploads/

Any help would be greatly appreciated.

Cheers!

       
swenke's avatar
swenke
70 posts
17 years ago
swenke's avatar swenke

Can this extension be installed on the demo version for tinkering?

I’m very close to purchasing a complete license but would love to see how this works? It would solve many of my headaches.

Thanx, Swenke

       
tpayton's avatar
tpayton
172 posts
17 years ago
tpayton's avatar tpayton

HI,

Been using file for many sites. Make that every site we do. EE should buy it give Mark bunch of money, plus free Ice Cream for a year.

Anyway, I can’t seem to get multi to work properly as per this post. In fact EE is not even parsing the code:

My field is called project_main_image. Here is what I got.

{exp:weblog:entries weblog="projects"}
     {multi_project_main_image}
          {multi_project_main_image}
     {/multi_project_main_image}
{/exp:weblog:entries}

Any thoughts?

EE 1.6, Build: 20070726 File 2.1.2

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

try:

{exp:weblog:entries weblog="projects"}
     {project_main_images}
          {multi_project_main_image}
     {/project_main_images}
{/exp:weblog:entries}
       
tpayton's avatar
tpayton
172 posts
17 years ago
tpayton's avatar tpayton

That didn’t work but I figured it out:

{project_main_images}
{project_main_image}
{/project_main_images}

Thanks for the help!

One feature request if I could sqeeze it in. Instead of globally setting multiple “Files”, control the setting for multiple files when setting up a custom field.

       
Visiluna's avatar
Visiluna
92 posts
17 years ago
Visiluna's avatar Visiluna

I accidentally started a new topic on this when I intended to post it here. So here it is.

I’m getting the following error when I try to upload a file using File 2.1.2.

“Error There was a problem uploading ‘product_insert’.”

‘product_insert’ is the name of the custom field.

I have checked and double checked all the various permissions and they are correct. I can successfully upload a file into the same location using EE’s built-in File Upload feature.

I just can’t upload using File.

Any suggestions?

       
tpayton's avatar
tpayton
172 posts
17 years ago
tpayton's avatar tpayton

Mark,

I found some strange behavior of 2.1.2.

All my uploaded images are resized to 500 pixels wide. I looked through the settings for the Upload Location and there was no resizing set.

I revered to 2.1.0 and all is well.

EE 1.6, Build: 20070726

       
Helmi_xisnet's avatar
Helmi_xisnet
71 posts
17 years ago
Helmi_xisnet's avatar Helmi_xisnet

Hi all, is there anyway I can show the number of total uploaded files in my template?

       
Stephen Lewis's avatar
Stephen Lewis
466 posts
17 years ago
Stephen Lewis's avatar Stephen Lewis
I found some strange behavior of 2.1.2… All my uploaded images are resized to 500 pixels wide.

Same problem here, all very strange.

I revered to 2.1.0 and all is well.

Sounds like a plan… any idea where I can get version 2.1.0 from?

Cheers Stephen

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

Hi there,

Sorry to drag all this up again but I was wondering if someone could possibly take the time to talk me through how to get the File extension working with my SAEF?

Basically what I need is a way to create an SAEF which has a photo field that will use the File extension so that I can allow people to upload an image along with the rest of the SAEF fields that I want them to have access to.

I just can’t figure out what I have to do to get this working. I have the extension enabled but when I go to the SAEF as created following the standard EE documentation I just get the name of the field showing and no upload button.

If anyone could lend a hand with this then I would be greatly appreciative. Also wondering how easy it is to allow this to work for many fields say if I wanted two or more fields to be upload fields?

Thank you in advance for any help with all of this.

Best wishes,

Mark

       
tpayton's avatar
tpayton
172 posts
17 years ago
tpayton's avatar tpayton

We did a pretty extensive site with photos using SAEF. Here is a few valuable pieces of info.

You need to get: extract_url_plus. Also we used embedded templates so we could save alot of typing.

The trick is to locate the field number for the field you want to use as a photo which IS NOT the same as the field ID (go figure). To get that value you need to grab it from the EE Plublish page for that weblog.

One you get that, here is just the bit of code in the SAEF for adding an image:

<b>Main Image</b>
  {embed="snipets/saef_edit_form_file_field_empty" field_number="18" field_name="{article_main_image}"}

Here is the template “snipets/saef_edit_form_file_field_empty”



Then to edit that field we created an “edit article” template with this code in the SAEF:

<b>Main Image</b>
  {if article_main_image}
  {embed="snipets/saef_edit_form_file_field_full" field_number="18" field_name="{article_main_image}"} 
  {if:else}
  {embed="snipets/saef_edit_form_file_field_empty" field_number="18" field_name="{article_main_image}"} 
  {/if}

Here is the template “snipets/saef_edit_form_file_field_full”



This might be a bit confusing, but let me know if you have any questions.

       
First 14 15 16 17 18 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.