473,395 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

looking for ajax image upload script

Hello,

Does anyone know of an easy to implement ajax upload script for php
which also has a progress bar. If possible I'd like it to be able to
remove already uploaded files and do minor manipulations...
Thanks.

Jun 26 '07 #1
3 3233
Ken1 wrote:
Hello,

Does anyone know of an easy to implement ajax upload script for php
which also has a progress bar. If possible I'd like it to be able to
remove already uploaded files and do minor manipulations...
Thanks.
Ajax? Fine.
But how are you planning to use PHP to see ow many bytes are uploaded?
I did this in Java (easy), and Perl, but I don't think PHP gives you any
access to this knowledge.
As far as I know, PHP populates $_FILES and the like AFTER the upload is
completed.

If you have Perl installed on your webserver too, have a look at Mega Upload
(written in Perl).
Read more here:
sourceforge.net/projects/megaupload (when the site is up again....)

Regards and good luck,
Erwin Moller
Jun 26 '07 #2
Erwin Moller wrote:
>
Ajax? Fine.
But how are you planning to use PHP to see ow many bytes are uploaded?
I did this in Java (easy), and Perl, but I don't think PHP gives you any
access to this knowledge.
As far as I know, PHP populates $_FILES and the like AFTER the upload is
completed.

If you have Perl installed on your webserver too, have a look at Mega Upload
(written in Perl).
Read more here:
sourceforge.net/projects/megaupload (when the site is up again....)

Regards and good luck,
Erwin Moller
This is no longer true as of PHP 5.2.0. See the uploadprogress
extension (http://pecl.php.net/uploadprogress). Install this extension
and you can magically get progress information on uploads while they occur.

I have used this for upload progress monitoring in several applications
with great success.

OP, please note that "AJAX File Upload" is not really the proper term
here. You must submit your file upload via regular methods (one way is
to submit the file upload to a hidden frame) and then use asynchronous
requests (a.k.a. "AJAX") to *monitor* the progress. Submitting the file
itself via XmlHttpRequest is not possible.

Jeremy
Jun 26 '07 #3
Jeremy wrote:
Erwin Moller wrote:
>>
Ajax? Fine.
But how are you planning to use PHP to see ow many bytes are uploaded?
I did this in Java (easy), and Perl, but I don't think PHP gives you any
access to this knowledge.
As far as I know, PHP populates $_FILES and the like AFTER the upload is
completed.

If you have Perl installed on your webserver too, have a look at Mega
Upload (written in Perl).
Read more here:
sourceforge.net/projects/megaupload (when the site is up again....)

Regards and good luck,
Erwin Moller

This is no longer true as of PHP 5.2.0. See the uploadprogress
extension (http://pecl.php.net/uploadprogress). Install this extension
and you can magically get progress information on uploads while they
occur.
Great. And about time too. ;-)
Thanks for the correction.

Regards,
Erwin Moller

Jun 27 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
12
by: JMB | last post by:
Hello, I was wondering if anyone knew of any projects extending the inline upload progress bar to utilize an inpage image uploader with bar, without having to refresh or go to a seperate page,...
3
by: Manish | last post by:
I am developing a photo gallery. 1. The user will be able to upload the photo a) Edit the photo using various GD library functions viz. flip, rotate, ... 2. AJAX is implemented in a small...
3
by: Senthil | last post by:
Hi all I'm new in ajax. How to upload a image using ajax..
1
by: bsprogs | last post by:
I am currnetly programming a file hosting website in PHP and I am slowly integrating AJAX into the website. Here is my problem: The user uploads the file. The server processes the file and...
3
by: kksandeep | last post by:
i am using this three files to uplod file. i got this file from net but i think these have some error. i am new to this field plz help the script i found is some helpful but not too that i need ...
1
by: kksandeep | last post by:
i am using this three files to uplod file. i got this file from net but i think these have some error. i am new to this field plz help the script i found is some helpful but not too that i need ...
13
by: blindlemon1983 | last post by:
php version - 4.4.4 mysql version - 4.1.22 Hi, my problem is rooted in how blogs handle ajax requests from a database returning html in the form of an image element. So the blog contains...
11
by: ziycon | last post by:
Ok, I've gone through the code at http://www.webtoolkit.info/ajax-file-upload.html and I'm totally lost, haven't got a clue what it does and wher eit should be added!?! So i have: <html>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.