Jump to content


Upload Progress


5 replies to this topic

#1 dotbart

    Young Padawan

  • Members
  • Pip
  • 141 posts
  • Gender:Male
  • Location:Diepenbeek
  • Interests:Webdesign, Webdeveloppement, DJ, ...

Posted 21 September 2007 - 09:08 AM

Hi guys,

I'm writing an uploadscript in PHP. Now when uploading a large file, sometimes it's nice to know how far along you are in your upload.
A technique to know that would be to have an AJAX script check the filesize on the server of the uploading file to compare it to the total filesize in the uploading process.

My problem now is to determine the original filesize of a file on a pc.
I'd probably need a javascript for that but I'm not sure if js has access rights for that on a pc.


Anyone got a solution?


thanks

#2 Hayden

    P2L Jedi

  • Members
  • PipPipPip
  • 716 posts
  • Gender:Male
  • Location:Texas

Posted 21 September 2007 - 10:24 AM

http://www.php.net/file-upload

that's where i would look and have used for file uploads. I have never done the progress indicator though.

#3 .CJ

    Young Padawan

  • Members
  • Pip
  • 114 posts
  • Gender:Male
  • Location:Leeds, UK

Posted 21 September 2007 - 02:08 PM

Perhaps something like this?

#4 dotbart

    Young Padawan

  • Members
  • Pip
  • 141 posts
  • Gender:Male
  • Location:Diepenbeek
  • Interests:Webdesign, Webdeveloppement, DJ, ...

Posted 21 September 2007 - 02:34 PM

View Post.CJ, on Sep 21 2007, 09:08 PM, said:

Perhaps something like this?
Yup,
that's going to be my end goal. So in orde to achieve that I need to know the original filesize.
Thanks in advance

#5 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 22 September 2007 - 12:21 AM

You can't access the original file through JS. That sort of operation is not permited... flash on the other hand... who knows?

Edited by rc69, 22 September 2007 - 12:22 AM.


#6 dotbart

    Young Padawan

  • Members
  • Pip
  • 141 posts
  • Gender:Male
  • Location:Diepenbeek
  • Interests:Webdesign, Webdeveloppement, DJ, ...

Posted 22 September 2007 - 05:14 AM

Allright, I'll give it a go in flash.
Thanks guys





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users