473,385 Members | 1,402 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,385 software developers and data experts.

Image uploading using ajax

Hi all
I want to upload an image in my website using ajax and php i.e
without refreshing the page i want to upload image .
Plz help its very urgent
Oct 20 '08 #1
5 5426
On Oct 20, 2:39*pm, sarika <sarikason...@gmail.comwrote:
Hi all
*I want to upload an image in my website using ajax and php i.e
without refreshing the page i want to upload image .
Plz help its very urgent
Hi Sarika,

Use the given below link that will solve your problem,

http://www.phpclasses.org/browse/package/2759.html.

Regards,
R S
Oct 20 '08 #2
R*a*h*u*L wrote:
On Oct 20, 2:39 pm, sarika <sarikason...@gmail.comwrote:
>Hi all
I want to upload an image in my website using ajax and php i.e
without refreshing the page i want to upload image .
Plz help its very urgent

Hi Sarika,

Use the given below link that will solve your problem,

http://www.phpclasses.org/browse/package/2759.html.
I haven't tried anything like this for a while so security
restrictions on browsers may have changed. You should at least be aware
that some browsers may have security concerns with a dynamically written
FILE input. Test.

Jeff
>
Regards,
R S
Oct 21 '08 #3
Jeff wrote:
R*a*h*u*L wrote:
>On Oct 20, 2:39 pm, sarika <sarikason...@gmail.comwrote:
>>Hi all
I want to upload an image in my website using ajax and php i.e
without refreshing the page i want to upload image .
Plz help its very urgent

Hi Sarika,

Use the given below link that will solve your problem,

http://www.phpclasses.org/browse/package/2759.html.

I haven't tried anything like this for a while so security
restrictions on browsers may have changed. You should at least be aware
that some browsers may have security concerns with a dynamically written
FILE input. Test.

Jeff
>>
Regards,
R S
Browsers won't allow a FILE field to be filled in, either statically or
dynamically. That would be a huge security hole.

Can you imagine someone coding a page which fills in a FILE field, then
hides it control with CSS? They could access anything on your system,
and unless you look at the source, you'd never know it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Oct 21 '08 #4
On Mon, 20 Oct 2008 11:39:02 +0200, sarika <sa**********@gmail.comwrote:
Hi all
I want to upload an image in my website using ajax and php i.e
without refreshing the page i want to upload image .
Plz help its very urgent
The way we used to, before javascript had any reliable
cross-common-browser httprequest, was by just 'normal' posting to a hidden
iframe, and read its return contents (or call window.parent from the
hidden loaded page). Not flashy, but very simple and it works.
--
Rik Wasmus
Oct 21 '08 #5
Jerry Stuckle wrote:
Jeff wrote:
>R*a*h*u*L wrote:
>>On Oct 20, 2:39 pm, sarika <sarikason...@gmail.comwrote:
Hi all
I want to upload an image in my website using ajax and php i.e
without refreshing the page i want to upload image .
Plz help its very urgent

Hi Sarika,

Use the given below link that will solve your problem,

http://www.phpclasses.org/browse/package/2759.html.

I haven't tried anything like this for a while so security
restrictions on browsers may have changed. You should at least be
aware that some browsers may have security concerns with a dynamically
written FILE input. Test.

Jeff
>>>
Regards,
R S

Browsers won't allow a FILE field to be filled in, either statically or
dynamically. That would be a huge security hole.

Can you imagine someone coding a page which fills in a FILE field, then
hides it control with CSS? They could access anything on your system,
and unless you look at the source, you'd never know it.
Absolutely. But, I've also had trouble just writing a file input
that wasn't filled out. One of the major browsers would let you fill it
in yourself, but upload would fail silently. I think it was a Moz
flavor. There really shouldn't be a security concern for a file input
that you see and fill out yourself, but there was. That may have been
"fixed", I do not know...
Jeff
>
Oct 24 '08 #6

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

Similar topics

5
by: ok | last post by:
Hello, Q: How do I get image width and height before uploading an image? This because, I want to restrict people uploading huge files. Thanks in advance
3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
0
by: doffer | last post by:
I want to make a portfoliosystem where user can register and get their own portfolio... I've started the developer work, but I'm stuck on the image upload part... I'm experiencing some problems...
10
by: John Smith | last post by:
I know that uploading an image to a database has been covered, oh, about 3 trillion times. However, I haven't found anything covering uploading to a MySQL database with .net. Please don't...
1
by: jessnair | last post by:
Hi, How do you display a busy/status image in a web application when you upload files to the server. Using vb.net thanks in advance
3
by: Senthil | last post by:
Hi all I'm new in ajax. How to upload a image using ajax..
1
by: www.web20developers.com | last post by:
http://www.web20developers.com http://www.web20developers.com/index.php?option=com_content&task=view... Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell AJAX -...
8
by: brahmaforces | last post by:
Hi Folks, I am using cherrypy and python. I am trying to get a user profile image to resize on the client side before uploading to the server. PHP has a gd library that does it it seems. Has...
3
by: Ajinkya | last post by:
Hello , Can any body tell me how to add progress bar while uploading image with the help of JavaScript or AJAX . I built application by using PHP & HTML. If you have any code or link from that I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.