/    Sign up×
Community /Pin to ProfileBookmark

Attaching .jpeg via a form

Any help would be welcomed. I am building a site using frontpage. I am trying to find out what code I could use in my site to attach a .jpeg file via a form in which I could send it to the server to be stored in my images folder.

to post a comment
Full-stack Developer

2 Comments(s)

Copy linkTweet thisAlerts:
@ray326May 17.2005 — Look at the input type="file" tag and its use.
Copy linkTweet thisAlerts:
@hossauthorMay 18.2005 — ok ray326, thanks for the direction I needed. Now I have a related question....I am hung up on the action statement. I do not want to action="mailto:[email protected]" but instead send the attachment to be stored on the server in my images folder, so I can retrieve it later. Here is what I have so far.

<form method="POST" action="NOT SURE WHAT TO PUT HERE" enctype="multipart/form-data">

Attachment: <input type="file" name="attachedfile" allow="image/*">

Please tell me how I can store it on the server in the images folder. Thanks in advance. ?
×

Success!

Help @hoss 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.14,
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,
)...