Solved

Best uploading with progress

Posted on 2009-05-07
12
409 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
 
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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
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 …
A short film showing how OnPage and Connectwise integration works.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

948 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now