Part of the EllisLab Network
   
1 of 2
1
Progressbar during upload
Posted: 01 February 2007 08:27 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  207
Joined  12-22-2006

I have helped som people during my time here and now I need yours smile

Has anyone any experience with upload progress bars? Currently working on a project (too bad no CI) where this is required. I have tried an example but so far it doesnt work. Would be cool if any of you have done anything with this before.

Profile
 
 
Posted: 01 February 2007 08:31 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

Did you try to have a look at the jquery plugins?

->jQuery

->visual jQuery

I actually prefer jQuery rather than scriptaculous and prototype ‘cause is better documented.

Hope this helps!

Dan

PS: I think that you should build something like a page loader animation connect to the execution time of the uploader script.

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 01 February 2007 08:41 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  486
Joined  09-14-2006

Take a look at this. I ran across it a while back, but haven’t used it for anything yet.

 Signature 

Code Igniter 1.5.4 / CentOS 5 / PHP 5.2.3 / Apache 2.2.2 / MySQL 5.0.27

Profile
 
 
Posted: 01 February 2007 08:55 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  486
Joined  09-14-2006

It took me a while to find this link again, but I finally did. This one is really cool, but it’s not officially released yet.

 Signature 

Code Igniter 1.5.4 / CentOS 5 / PHP 5.2.3 / Apache 2.2.2 / MySQL 5.0.27

Profile
 
 
Posted: 01 February 2007 09:00 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  207
Joined  12-22-2006

Wow that last one is very nice. Too bad you cant use it yet.

Profile
 
 
Posted: 01 February 2007 09:03 AM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  486
Joined  09-14-2006

It should be noted that both links I posted are js+Flash based solutions. I’m not sure that there is a way to do it otherwise.

 Signature 

Code Igniter 1.5.4 / CentOS 5 / PHP 5.2.3 / Apache 2.2.2 / MySQL 5.0.27

Profile
 
 
Posted: 01 February 2007 09:14 AM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

I think it is possible via Ajax + a javascript loader image

This is for ajax upload with jquery

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 01 February 2007 09:16 AM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  486
Joined  09-14-2006

danfreak, do you know of a demo for the jquery version? I couldn’t find one.

 Signature 

Code Igniter 1.5.4 / CentOS 5 / PHP 5.2.3 / Apache 2.2.2 / MySQL 5.0.27

Profile
 
 
Posted: 01 February 2007 09:20 AM   [ Ignore ]   [ # 8 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

=> Here is a demo script with forms and loader image.

=> this is the jquery library (compressed: 19Kb)

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 01 February 2007 09:28 AM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  207
Joined  12-22-2006

I got a working script now after tweaking my example some more. Too bad its impossible (afaik) to get the total filesise of a uploaded file with PHP during upload.

Profile
 
 
Posted: 01 February 2007 09:32 AM   [ Ignore ]   [ # 10 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

I’ll work out an example with jquery now!

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 01 February 2007 09:56 AM   [ Ignore ]   [ # 11 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  486
Joined  09-14-2006
Mark van der Walle - 01 February 2007 09:28 AM

Too bad its impossible (afaik) to get the total filesise of a uploaded file with PHP during upload.

I’m pretty sure that’s what the Flash is used for. The file browser is from Flash, that’s why it’s able to restrict the type of file uploaded. Flash has more liberal access to the file system than JS and I think after the file is selected, it is able to get the total file size before starting the upload.

 Signature 

Code Igniter 1.5.4 / CentOS 5 / PHP 5.2.3 / Apache 2.2.2 / MySQL 5.0.27

Profile
 
 
Posted: 01 February 2007 02:47 PM   [ Ignore ]   [ # 12 ]  
Lab Assistant
RankRank
Total Posts:  102
Joined  04-19-2006

What version of php are you using?

 Signature 

Palm Beach Printing

Profile
 
 
Posted: 01 February 2007 03:25 PM   [ Ignore ]   [ # 13 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  207
Joined  12-22-2006

our client hosts PHP4 so we have to use that. So for i got something with just PHP and ajax. Ill look at the flash stuff later. Although I just heard today that the project is currently on hold…

Profile
 
 
Posted: 08 February 2007 07:59 AM   [ Ignore ]   [ # 14 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  512
Joined  12-05-2006

I just found this interesting script (didn’t test it yet).

=> tesUpload

while for images this looks cool!

=>ajax image upload

=>iframe ajax image upload with P.O.R.K

 Signature 

FreakAuth_light: pluggable & extendable authentication library that works on CI 1.5.X

CI SWIFT MAILER: 44% less memory than PHPMailer at double speed

Using Zend Framework components in Code Igniter

Profile
 
 
Posted: 12 February 2007 03:13 AM   [ Ignore ]   [ # 15 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  207
Joined  12-22-2006

Well after a week of skiing in Austria I can start tackling this problem again. So far your help has been great. I’ll let ya know what I come up with.

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 66431 Total Logged-in Users: 29
Total Topics: 84795 Total Anonymous Users: 4
Total Replies: 455070 Total Guests: 240
Total Posts: 539865    
Members ( View Memberlist )
Newest Members:  GlennJDylan1978X_franbaguasllogocsaturkeyPeter BryanttherendStudioGeorgiaJZeer