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.
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)
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.
I’ve not sure why the docs give the double bracket syntax cause this was catching me out before….but try this.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:{MiscellaneousUpload} {file_path} {/MiscellaneousUpload}
Hope that helps.{person_photo} {file_path} {/person_photo}
Thanks! I’ll give it a whizz tomorrow morning.
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/
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=
:(
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
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
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.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.