Hi,
I have a web site where the users can propose articles to be published.
But in the form the user can also send me a picture to illustrate the
article
they are proposing.
Now I want to offer them 3 choices, either the picture comes from their
machine, from my an image directory in my site or from the web.
For the image from the web they must provide the URL as I don't think I can
offer them a way of browsing around the internet.
Now I have a couple of problems :),
How do I create a popup box to allows them to browse their machine and then
upload the selected file to my server.
How do I copy the file from the web to my server, (is it legal?)
How can I limit the file type, (only jpg and gif for example), and check
that the file is 'safe'?
How can I limit the size of the image, (in kb)?
And last but not least how can I allow them to select an image from a
predefined directory?
I was thinking of displaying all the images but I can become a problem once
I have quite a few.
Many thanks in advance for your input.
Sims
I have a web site where the users can propose articles to be published.
But in the form the user can also send me a picture to illustrate the
article
they are proposing.
Now I want to offer them 3 choices, either the picture comes from their
machine, from my an image directory in my site or from the web.
For the image from the web they must provide the URL as I don't think I can
offer them a way of browsing around the internet.
Now I have a couple of problems :),
How do I create a popup box to allows them to browse their machine and then
upload the selected file to my server.
How do I copy the file from the web to my server, (is it legal?)
How can I limit the file type, (only jpg and gif for example), and check
that the file is 'safe'?
How can I limit the size of the image, (in kb)?
And last but not least how can I allow them to select an image from a
predefined directory?
I was thinking of displaying all the images but I can become a problem once
I have quite a few.
Many thanks in advance for your input.
Sims
Comment