Solved

Best uploading with progress

Posted on 2009-05-07
12
410 Views
Last Modified: 2013-12-24
As part of a form, I need to allow users to upload a PDF,  It will replace an existing PDF on the server if needed.

I would like to show a (upload) progress bar if possible.

What is the best way to handle this in CF8? Is this something built into CF8?

THANKS EXPERTS!!!!
0
Comment
Question by:Short-Order-Coder
  • 5
  • 4
  • 2
12 Comments
 
LVL 52

Expert Comment

by:_agx_
ID: 24328917
No, there is nothing built into ColdFusion.   But there are tools you can use to create or simulate a progress bar.  This thread summarizes the options pretty well.
http://www.experts-exchange.com/Web_Development/Software/ColdFusion_Studio/Q_22562424.html

.. and includes a link to one option: a flash form upload with progress bar
http://www.asfusion.com/examples/item/file-upload-with-coldfusion-flash-forms
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 24329291
By the way, Gmail is doing now also some fine progress bar display for the attachments upload: uploaderapi2.swf
0
 
LVL 63

Assisted Solution

by:Zvonko
Zvonko earned 50 total points
ID: 24329366
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 52

Expert Comment

by:_agx_
ID: 24329432
Basically, to do a real progress bar you need to access information from the client machine. Due to browser security restrictions, that requires something like a flash swf file (like in my link above) or an activeX control.  Otherwise, you only simulate one.
0
 

Author Comment

by:Short-Order-Coder
ID: 24339600
Are flash forms something that can be whipped up in Deramweaver?  Flash makes me itch.
0
 

Author Comment

by:Short-Order-Coder
ID: 24339610
I'd be fine writing the code for a flash form, Suggestion for a good place to find codebase?
0
 
LVL 52

Accepted Solution

by:
_agx_ earned 450 total points
ID: 24339871
Check out the article at asfusion. It is very simple.  All the flash is packaged up for you.  Just download the code and use a small bit of CF code and you are ready to go:

http://www.asfusion.com/blog/entry/file-upload-with-coldfusion-flash-forms
http://www.asfusion.com/examples/item/file-upload-with-coldfusion-flash-forms
<!--- syntax example from asfusion.com --->
<!--- requires download of custom tag --->
<cf_flashUpload name="defaultInput" actionFile="upload.cfm">
   <cf_flashUploadInput />
</cf_flashUpload>

Open in new window

0
 

Author Closing Comment

by:Short-Order-Coder
ID: 31579136
Thanks experts.  This works perfectly.
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24360041
Short-Order-Coder,

Just curious, but if it works perfectly .. why the B grade ? ;-)
0
 

Author Comment

by:Short-Order-Coder
ID: 24360138
This should be an A grade.  Not really sure why it's marked as B.
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24360162
Ah, okay.  
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need help with EXECUTE sp_executesql in ColdFusion cfquery 10 34
Trigger usage 2 68
PHP: concatenate query 13 67
FrontEnd tools to create web database application 7 56
This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question