/    Sign up×
Community /Pin to ProfileBookmark

How do you add an image uploader to your site?

I want to add an input box with a button next to it that, when you paste a link to an image in the input box and press the button it uploads or shows the image in the section below.

Can someone do this for me please?

I want you to make it using the get element by ID functions and the append child functions and all that… Thank you

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@SMTSSep 03.2011 — This can't be done with javaScript. Certainly, you could dynamically make a 'img' element with JavaScript and show the picture if it's a URL, but this is not helpful when dealing with files on one's computer.

You will need a server and PHP to upload files.

I hope this helps.

~Charles
×

Success!

Help @lX_AeR0SpAc3_Xl spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...