Forum Moderators: mack

Message Too Old, No Replies

I need to let my customers upload thier digital photographs

need help setting up an upload web page

         

dustydom

1:58 am on Mar 4, 2008 (gmt 0)

10+ Year Member



I am starting an online business which requires that my customers can upload their digital photos, and I download them in the back end.

I have a website which I designed, however this does not have the upload capability. I need a separate website which I can link to which allows my customers to simply browse to where their photograph folders are stored on their pc's, and upload them.

I can then download the images. I need the images to be uploaded to a secure environment where no one else can access them except myself.

Can anybody advise how I can go about obtaining this feature.

[edited by: engine at 11:49 am (utc) on Mar. 4, 2008]
[edit reason] specifics [/edit]

piatkow

1:13 pm on Mar 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Quick solution is to use any one of a multitude of photo hosting services. Another alternative is simply to have an email form supporting attachments and they mail them to you.

jyogit

6:22 pm on Mar 17, 2008 (gmt 0)

10+ Year Member



i need to be able to do this with email attachments but cant seem to find out how to add that as a form function.
anyone help us both out here?

Demaestro

6:45 pm on Mar 17, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I wouldn't use email attachments as a method of getting digital photos. There are all sorts of file size issues plus email was not meant to be used for file transferring and is an inefficient way of doing it.

Is there a reason you can't set up a seperate FTP folder for each client and provide them with a login and password and FTP instructions?

This would be the most efficient way and the easiest for you to maintain and them to use.

dbdev

6:52 pm on Mar 17, 2008 (gmt 0)

10+ Year Member



what are the specifics on your web server and chosen language (code)?

jyogit

7:02 pm on Mar 17, 2008 (gmt 0)

10+ Year Member



any simple way of achieving this would be good.
i have a simple php form to email but would like to let the sender add an attachment to it before sending the amail.
the form i have made so far just sends the information direct to the email without opening up the email box.
confused.com.... lol

The Contractor

7:47 pm on Mar 17, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ok, here is something I hacked together real quick:

Upload Page

<p>You may upload your photo below: </p>
<form action="quickupload.php" method="post" enctype="multipart/form-data">
<p>Your Name:<br>
<input type="text" name="sender_name" size="29"><br>
<br>
E-Mail Address:<br>
<input type="text" name="sender_email" size="29"><br>
<br>
<br>
File to Upload:<br>
<input type="file" name="img1" size="22"><br>
<br>
File to Upload:<br>
<input type="file" name="img2" size="22"><br>
<br>
File to Upload:<br>
<input type="file" name="img3" size="22"><br>
<br>
File to Upload:<br>
<input type="file" name="img4" size="22"><br>
<br>
<input type="submit" name="submit" value="Upload My Photo"> </p>
</form>

The processing (quickupload.php)

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<?

$msg = "Photo Uploaded By\n";
$msg .= "Name: $sender_name\n";
$msg .= "E-Mail: $sender_email\n";
$msg .= "Upload: $img1_name\n";
$msg .= "Upload: $img2_name\n";
$msg .= "Upload: $img3_name\n";
$msg .= "Upload: $img4_name\n\n";

$msg .= "UserIP: $REMOTE_ADDR\n";

$to = "youremail@yourdomain.com";
$subject = "Photo Uploads";
$mailheaders = "From: $sender_email <> \n";
$mailheaders .= "Reply-To: $sender_email\n\n";

mail($to, $subject, $msg, $mailheaders);

if ($img1_name != "") {

@copy("$img1", "/full server path to upload images to/$img1_name")
or die("Couldn't copy the file.");

}
if ($img12_name != "") {

@copy("$img2", "/full server path to upload images to/$img2_name")
or die("Couldn't copy the file.");

}if ($img3_name != "") {

@copy("$img3", "/full server path to upload images to/$img3_name")
or die("Couldn't copy the file.");

}if ($img4_name != "") {

@copy("$img4", "/full server path to upload images to/$img4_name")
or die("Couldn't copy the file.");

}

?>
<html>
<head>
<title>Thank You For Your Submission</title>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">

</head>

<body>

thanks!

</body>

</html>

Of course you will need to fill in the server paths and your email address etc in quickupload.php. Use at your own risk and make sure to password protect the folder where you would keep this along with building in some spam proofing. I'm not good at PHP at all...hehe

piatkow

11:36 am on Mar 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I read the OP has having a hosting service that doesn't support PHP. If that is a case then a third party photo hosting service is probably the best option. You don't have to use it to publish the pix, just download them from the upload location and use as required.

dbdev

5:25 pm on Mar 18, 2008 (gmt 0)

10+ Year Member



What you need is a properly designed website that has the functionality you require.

You say you are "starting an online business"... and already you are looking to band-aid solutions... clearly this is not a planned venture.