[NTLUG:Discuss] Uploading to a web site.
Patrick R. Michaud
pmichaud at pobox.com
Tue Dec 19 13:26:24 CST 2006
On Tue, Dec 19, 2006 at 01:21:21PM -0600, steve wrote:
> brian at pongonova.net wrote:
> > Steve--
> >
> > Personally, after test-driving several different PHP-based galleries,
> > I settled on Gallery (http://gallery.menalto.com). If you want to roll
> > your own, you'll have to address a number of issues, such as
> > authentication, session management, server security, etc. Life's too
> > short to continually reinvent the wheel...
>
> The trouble here is that I really do need to do something like that.
>
> I'll be able to restrict access to the web page to only people I trust
> so I'm not too worried about all of those tricky issues.
>
> But I need to take the uploaded photos and do stuff to them - so an
> off-the-shelf gallery or Wiki or whatever isn't a solution.
>
> I just need to understand the basic priciples of how the heck this
> trick is pulled.
The way that PmWiki handles uploading of files to a website is
by using the <input type='file' ... /> control in (X)HTML.
For the HTML:
http://www.w3.org/TR/html4/interact/forms.html#h-17.4.1
To see how PHP handles it:
http://www.php.net/manual/en/features.file-upload.php
FWIW, PmWiki would make it possible to take the uploaded photos
and "do stuff to them", depending on the kind of stuff to be done. :-)
Pm
More information about the Discuss
mailing list