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

Dane Thomas's avatar
Dane Thomas
139 posts
17 years ago
Dane Thomas's avatar Dane Thomas
Hiya, Just to drop in my two penneths worth on this one. Mark first of all your extensions are fantastic so thanks for those!! 😊 I would love to see an AJAX upload utility in place and think that the real boon for use would be from within an SAEF. I don’t think that in the EE control panel there is really any call for it but in an SAEF it would be fantastic. I can see an issue with it though and not too sure how you would handle it Mark? I think the main problem would be : Would this be in a pop-up window or would it work in the same window? I would personally love for it to be in the same window. What I would love to have happen is the person fills out the SAEF. If they try to submit the form without the file chosen then they would be warned. There could be the option here to allow the person to carry on or halt the form sending process altogether. Next up if they have to choose a file then they would click on choose and the standard dialogue box would come up asking for a file. They would choose the file and as soon as they have done so it would start uploading and show a progress bar. I think the most important thing here would be that there would need to be something in place that would allow them to delete the upload as it is going if they realised that they had chosen the wrong file or something. If the file did get all the way and upload then they would be presented (on the same page) with a small (configurable) thumbnail that would show them the file they just uploaded (very useful for images). They could then see if this was definitely the one they wanted. At this point they could still delete the file if needed. Once they have chosen a file then they could submit the form. I think if it worked in this way then all bases would be covered and should stop most problems that may arise from doing it in this way with an AJAX up-loader. As I said before I’m not too sure if this would be totally necessary in the control panel but with SAEFs this would be absolutely fantastic. Hope you can add in all these options to it Mark as it will be one beast of an addition if you could. Just my thoughts though! 😊 Best wishes, Mark

I’ve never used SAEF’s so I’m only using the file upload mod within the CP - I’m not sure why it would be considered great in SAEF and not the CP? If people are uploading large files in either formats there is a valid need for some feedback.

Some of the examples I suggested offer cancellation during the upload process so I would imagine this would work just the same.

I’m liking the delete from server that the extension already has so I’m guessing that would stay.

I also would like to see the upload start when the user selects upload rather than it being initiated when the whole entry is submitted. This would allow the file custom_field to be added before the body content (if there is one) so in many cases the file would be uploaded by the time the person has finished making the entry. (kinda like how gmail auto starts uploading files).

I think it’s best to keep it all in the one page - no popups/no flash - just another div of to the right hand side of the browse button and that gives the feedback, the actual upload now button as well as the cancellation button.

my 2 cents.

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo

Will it be possible to change the order of already uploaded files/photos etc?

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo

Hi Mark,

I’ve used an earlier version of this extension before and it works a treat but I tried 3.0 and I get some problems.

I used the following code -

{[person_photo]}
{file_thumb_path}
{/[person_photo]}

With person_photo being the name of the custom field. I just get this in the rendered code -

{[person_photo]}
{file_thumb_path}
{/[person_photo]}

I also set the following in ‘Image Properties’ -

resize_images=anchor_width&show_thumbnails=no

I am using 1.61 (Build 114)

       
Dane Thomas's avatar
Dane Thomas
139 posts
17 years ago
Dane Thomas's avatar Dane Thomas

I’ve not sure why the docs give the double bracket syntax cause this was catching me out before….but try this.

{MiscellaneousUpload}
{file_path}
{/MiscellaneousUpload}

where

{MiscellaneousUpload} is my custom field and because I’m using the pair’d format it will list multiple items.

The {file_path} tag outputs the image that I isually what with phThumb and {exp:zm_extract_url_plus} tags

So in your case:

{person_photo}
{file_path}
{/person_photo}

Hope that helps.

       
stinhambo's avatar
stinhambo
1,268 posts
17 years ago
stinhambo's avatar stinhambo
I’ve not sure why the docs give the double bracket syntax cause this was catching me out before….but try this.
{MiscellaneousUpload}
{file_path}
{/MiscellaneousUpload}
where {MiscellaneousUpload} is my custom field and because I’m using the pair’d format it will list multiple items. The {file_path} tag outputs the image that I isually what with phThumb and {exp:zm_extract_url_plus} tags So in your case:
{person_photo}
{file_path}
{/person_photo}
Hope that helps.

Thanks! I’ll give it a whizz tomorrow morning.

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

stinhambo - Yup Dane Thomas is right. You’ll want to drop the hard brackets and just use a semi-normal EE tag approach with the custom field name surrounded by curly braces.

rick.prince - I think I’ve reworked this enough to get it working on shared servers. Give the new 3.1.0 version a shot and let me know how it goes.

Mark Bowen - I’ve been looking at the Ajax approach for a bit now and didn’t really like any of the solutions I came up with. It’s too confusing to add another ‘Upload’ button when you already have a button to ‘Submit’. And I didn’t like auto-uploading because there’s little room for error, so I went the 37signals way and added a progress bar when the form is submitted. This should give the user and indication that something is happening without adding all the nose of another submit button.

You can grab the latest version on my site at: http://docs.markhuot.com/ee/extensions/file/

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

I have a problem, don’t know if it’s been covered or not. There is no formatting setting, and its adding paragraph tags to the file.

       
Bruce2005's avatar
Bruce2005
536 posts
17 years ago
Bruce2005's avatar Bruce2005
"/video/thumbs/" alt="" width:60px" height="50px" >

Update: Made new fields and deleted images, uploaded new files, works now 😊

       
APGWest's avatar
APGWest
295 posts
17 years ago
APGWest's avatar APGWest

I was about to upgrade from the delicious 2.1.0 to 3.1 but noticed they have different file names. Mark, is it possible (and safe) to just upload 3.1 and use it as a different extension or would that unleash the hounds of hell upon my site? 😉

       
Gabriel's avatar
Gabriel
130 posts
17 years ago
Gabriel's avatar Gabriel

Mark, I found a bug (ExpressionEngine 1.6.1, Build: 20071114, File 3.1):

CP Home › Admin › Weblog Administration › Field Groups › Custom Fields

If you changing “Field Type”, related settings for actual selected type not changing (and return JS error).

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

Mark,

I am correct in thinking that with 3.0.1 there is no longer a need to apply a hack to allow for SAEF uploading to a file field?

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

Mark,

Just installed on 1.6.1 and when clicking “create new upload destination” at CP Home › Admin › Weblog Administration › File Upload Preferences I get this:

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 ” at line 1 Query: SELECT * FROM exp_mh_file WHERE upload_id=

:(

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

Hi Mark,

Great news about the update. Don’t know if it was something I did though on my end so will try re-installing a localhost version of EE and testing again but as soon as I now go to the Publish tab and try to publish an entry all I get is a blank screen every single time I click on Publish.

Will try with a new install though, may have been something I did with the upgrade but pretty sure I did it correctly.

Best wishes,

Mark

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

Hiya,

Must have been something I did as I just tried on a fresh install of EE and all was well. Weird as I disabled the extension first and then replaced the extension file and the language file and re-enabled the extension and didn’t think that there should have been a problem with it but oh well 😊

How do we get this version working with the SAEF then? You mentioned that you had a progress bar on submit. How do I get this to work? Any help would be massively appreciated.

Best wishes,

Mark

       
Dane Thomas's avatar
Dane Thomas
139 posts
17 years ago
Dane Thomas's avatar Dane Thomas
And I didn’t like auto-uploading because there’s little room for error, so I went the 37signals way and added a progress bar when the form is submitted. This should give the user and indication that something is happening without adding all the nose of another submit button. You can grab the latest version on my site at: http://docs.markhuot.com/ee/extensions/file/

I am right to assume that the upload feedback isn’t in the current 3.1.0 release - cause I don’t seem to be getting it.

Apart from that nice update Mark - everything working well here.

       
First 19 20 21 22 23 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.