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

stevefink's avatar
stevefink
136 posts
17 years ago
stevefink's avatar stevefink

Just found this thread.

Anyway, I posted in another thread which can be found here: http://ellislab.com/forums/viewthread/74710/

Basically I have the extension installed. However, when I specify a file in my weblog and hit ‘Update’, it doesn’t POST the file with the rest of the form. It comes up that the file is required (I made it a required field, which is ultimately the goal anyway).

I’ve vardump’d $_POST and do not see the file being submitted in the request. I set the form’s method to GET and did find it in the query string. Not sure where it’s going wrong.

/sf

       
nomolos's avatar
nomolos
24 posts
17 years ago
nomolos's avatar nomolos

I’m having the same permissions problems as other people are having, where File reports a problem uploading an image but EE’s image upload works fine. Has anyone found a solution?

       
ropeadope's avatar
ropeadope
98 posts
17 years ago
ropeadope's avatar ropeadope

Having the same issue:

Hi, I have just installed this extension and added the necessary custom field. When I go to publish I get the error: “Notice: Undefined index: server_path in /home/fhlinux152/g/example.com/user/htdocs/ee/system/extensions/ext.mh_file_ext.php on line 521” I DO have a server path set in the File Upload preferences, so I am not sure what the problem is. I have searched the forum to see if anyone has had similar issues, but I haven’t found an answer. Any help on this would be superb. Thanks in advance.

anyone have any solutions??

       
ropeadope's avatar
ropeadope
98 posts
17 years ago
ropeadope's avatar ropeadope
Having the same issue:
Hi, I have just installed this extension and added the necessary custom field. When I go to publish I get the error: “Notice: Undefined index: server_path in /home/fhlinux152/g/example.com/user/htdocs/ee/system/extensions/ext.mh_file_ext.php on line 521” I DO have a server path set in the File Upload preferences, so I am not sure what the problem is. I have searched the forum to see if anyone has had similar issues, but I haven’t found an answer. Any help on this would be superb. Thanks in advance.
anyone have any solutions??

Ok, feeling dumb now, but I’ll post my solution: I edited an existing field. When I changed the field over to file, the Text Length parameter still stayed there. I went to Publish a new post and got that error. After going back to edit the Custom Fields, I noticed there was a upload area drop down. I selected the correct one for that field and, voila, it worked!

       
ebcms's avatar
ebcms
29 posts
17 years ago
ebcms's avatar ebcms

Re “File Extension causes MySQL error 1064”

We found that doing the following cleared the problem.

  1. Disable the File Extension 2a. Create new file upload directory on server as required. Confirm appropriate permissions!!! (usually 777 or 755 depending on hosting config/environment) OR 2b. Confirm appropriate permissions on existing directory.
  2. Go into CP > Weblog Admin > File Upload Directories
  3. Setup directories per normal using your new/existing directories above.
  4. Re-enable the Extension.

Hope that helps.

David

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

I am going to in and sift through 27 pages to find out how people make this puppy work with a SAEF - because I just gotta.

What would be the greatest thing ever, is to have someone who has done this start a new thread with a very descriptive title about how to do this. Here…copy and paste this: “How to get Mark Huot’s File Extension to work with SAEF/Stand Alone Entry Form”. Plenty of searchable keywords in there! Be a hEEro! Save many of us hours of time and eye-melting post-skimming, please!

       
Ty Martin's avatar
Ty Martin
232 posts
17 years ago
Ty Martin's avatar Ty Martin

Okay, try this out. SAEF instructions for the File extension.

EDIT: Remember, beer money can be sent here (first) and here. 😉

       
the wire's avatar
the wire
31 posts
17 years ago
the wire's avatar the wire

I installed this extension on EE 1.6.3 and I’m able to upload single files both through CP and SAEF. I have 2 issues so far:

  1. It doesn’t restrict the file type and file size even though the upload directory is correctly setup to accept only images and restrict file size. I checked the default EE file upload and the restrictions work fine.

  2. If I set to allow multiple files and rewrite filenames it will upload all file with the same name.

I’m not sure if I’m doing something wrong or there is an issue with latest EE version.

Any help will be appreciated.

Thanks, Gabriela

       
the wire's avatar
the wire
31 posts
17 years ago
the wire's avatar the wire

Someone was kind to point me to the solution for number 2 - I got lost in these 27 pages http://ellislab.com/forums/viewthread/38997/P396/#358515

I still have to fix the restriction issue which is very important.

Thanks for help

       
Efrain B.'s avatar
Efrain B.
42 posts
17 years ago
Efrain B.'s avatar Efrain B.

thanks. great extension

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

This is the craziest thread in existence. I hate it when anything doesn’t work as expected with this essential extension - like why remove is not working for my files. They simply will not go away. I just need to be able to remove files! Simple enough. I’m going to start hunting through the thread now and will cross-link to anything I find within.

UPDATE: Found that the Checkbox extension (v1.0.1) was in conflict with a runaway regular expression. Installed Checkbox 1.0.2 and all seems to be right with the world. Big thanks to Mark Huot for personally helping figure that out.

       
Yuri's avatar
Yuri
273 posts
17 years ago
Yuri's avatar Yuri

When I set resize setting to “Do not resize” it is not saved, and the files are resized. Any other options (e.g. crop) are saved, but not this one. Any ideas?

I use latest version of the extension (3.1.1.)

       
Bruce Brown's avatar
Bruce Brown
74 posts
17 years ago
Bruce Brown's avatar Bruce Brown

(I’ve scanned this thread and haven’t found the answer to this question.)

I see the extension adds a browse button to the display of the field in the Publish or Edit form. That browse button looks for a file on the user’s hard-drive. But, I don’t see a way to enter a file that already exists on the web server.

I’m working on a shopping cart, and it is sometimes nice to use an image already uploaded via Mark’s file module via another entry. To accomplish using an existing image, I could create additional custom text fields for image urls for these already-uploaded images.

However, it would be really nice to be able to browse also to images already existing on the server via Mark’s module and choose to use them and have the extension populate the field with the address to the existing image.

Is there a way to place a link to an already-uploaded image in one of Mark’s “file” field-types?

Hope I’m making sense, and sorry if this has already been addressed.

Bruce

       
james Brown's avatar
james Brown
492 posts
17 years ago
james Brown's avatar james Brown

This extension doesn’t have that ability. You might want to look at this one though. I think that is more inline with what you want to do (although I haven’t used it myself. I know that it requires that you actually purchase the Moxicode Image Manager. Not sure how much that costs.

       
ejectmedia's avatar
ejectmedia
12 posts
17 years ago
ejectmedia's avatar ejectmedia

I’ve found two rather annoying bugs with this extension. Otherwise, it’s been great to use!

I’ve making a site with a photo gallery. I only want to display the first 4 photos, and i there’s more display a link to the full entry with the rest of them. Seems easy.

What I’ve done below is simple loop throug the photos, but if the count gets higher than I want, stop outputting the code for displaying images. After that 4th image, put a link to the rest.

What actually happens is that after everything happens as described above, it also echos out the very last image from this entry! I have 89 images in one post, it outputs the first 4, the link, and then the 89th image!

{photos}
    {if {count} <= 4}
    <a href="http://{file_url}" title="{title}">_        {file_thumb_url}_    </a>
    {/if}
    {if {count} == 4}
        <a href="http://{title_permalink=album}">View more photos!</a>
        
    {/if}
    {count}-{total_results}

{/photos}

I tried to do everything I know how, but it happens every time!

The next bug is also a rather strange one. I was wanting to see if I was on the last image, so inside the loop I did an {if {count} == {total_results}} and it never got triggered. So you can see at the end of the loop I’ve got it to display the {count} and then the {total_results} after each image.

Everything works as expected until the end. I get 1-89, 2-89, etc and then at the end I get 88-89, 1-89! It goes back to the beginning one and never hits 89! I tried this with other sets of images and sometimes the last result is a different number! I have 2 other entries with 12 images each, and they will display 2-12 and 3-12

Now it’s almost as if the {count} var here is no longer counting images, but it’s counting entries outside of the file ext. loop.

Whats going on here and how can I fix this?! I need this functionality here to do what I want!

       
First 30 31 32 33 34 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.