English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have a form to allow users to upload pictures, i want the picture to be emailed to me to review. I found a script to attach an image to email in php, but this script needs to upload the picture to a directory before, and I don't have premissions on my host directories, so I need to attach the image without uploading to my host first. I mean could the picture be attached directly from the client PC? Is that possible? And what could be the solution to my problem? Thanks in advance.

2006-10-04 11:14:09 · 5 answers · asked by whatever 3 in Computers & Internet Programming & Design

5 answers

There is no way to "upload directly". Web servers upload files into a temporary directory, which is usually writable for all users.

The solution to your problem is to ask your hosting company's technical support if they support file upload. If they do, you should be fine. If they don't, you need to fire them and find a hosting company better suited to your needs.

2006-10-05 05:16:59 · answer #1 · answered by NC 7 · 1 0

You can actually change the permissions on the folders on the web! Use any ftp client and connect to your home directory and change the permissions. If that doesnt work try to save the picture as a blob if you are using mysql and access that by making a webpage that has a recordset to display the image. Good luck!

2006-10-04 15:18:39 · answer #2 · answered by waqar 2 · 1 0

you could upload the picture to a free image hosting website such as www.imageshack.us.
But no, you cannot take the picture from your computer.
But what you could do, is take the picture and decompose it into bytes and then ask the other end to put it together, but I think that may be a bit to advance for you. www.php.net gives you all the api that you will need.

2006-10-04 11:24:20 · answer #3 · answered by cktan86 2 · 1 0

i have not send pics but normally you direct all form contents to your mail
form name="myform" enctype="multipart/form-data" method=post action=mailto:info@vivarem.com>




it works lynx

2006-10-04 15:21:22 · answer #4 · answered by howsureyouare 3 · 0 0

What?

2006-10-04 11:15:49 · answer #5 · answered by cdrfish7 1 · 0 1

fedest.com, questions and answers