Gossamer Forum
Home : General : Perl Programming :

Uploading a file from the web to server.

Quote Reply
Uploading a file from the web to server.
Hope this right place to ask this :-)

I have seen lots of scripts about getting a file from the hard drive onto the server however what about from the web so that visitors can type in

http://www.myimages.com/image.jpg

if you see what i mean and then it is uploaded.

It would be preferable if the file can be quewed into a text file and then go whenever i want.

Any ideas?

------------------
-------------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Uploading a file from the web to server. In reply to
ok... LWP is ???

where can i get some info on this... read about it?

Thanks
Quote Reply
Re: Uploading a file from the web to server. In reply to
Have you looked at LWP? That would be the best method since you can verify the location of the file before uploading it.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Uploading a file from the web to server. In reply to
doesn't lwp just get text files.. maybe sockets..

i plan on doing this too.. i never looked into it.. and i've never been able to find a script that does it.. hmm

maybe those places know your ftp password *g*

jerry
Quote Reply
Re: Uploading a file from the web to server. In reply to
Almost everything about LWP module is located here:
http://www.perl.com/...dules/by-module/LWP/
Quote Reply
Re: Uploading a file from the web to server. In reply to
ok this is way over my head...

i wonder if it is actually possible to get a jpeg of zip file? I have seen a lot of these sites that will store files on their computer (backup i guess) for free but i have not yet seen one that lets you just type in a web url, you have to do it from your computer...

Seems strange.. i would of thought that if jerry can get a script that can log into our ftp and change files around, make new files etc then there must be a way to grap a file and put it on his server.

oh well....

------------------
http://www.freeontheweb.com/
Reviewed and rated resources for webmasters
-------------------------
Quote Reply
Re: Uploading a file from the web to server. In reply to
i need to add a subroutine to a script , to be able to upload a file from my hard drive to a specified directory, using a name :
$ID

my sxperiennce in perl is not that much,
can someone help out please ?
Quote Reply
Re: Uploading a file from the web to server. In reply to
Hello Laith. If you planning on using a upload mod with Links to associate files with ID numbers in a database, then you might want to take a look at the DBMAN File Upload Mod, which is located at:

http://www.jpdeni.com/dbman/mods.html

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Uploading a file from the web to server. In reply to
Eliot,

Thank you. Im trying to use it with a script called NewsDesk. its news editor, the best ive seen . the great thing about it is that it stores each article in a text file , and names it : $ID.txt, and only stores the dealine and the date in the flat text database. I wish this could be done with Links 2.

anyways back to the main subject, I need the upload thing for NewsDesk, so that i can upload images instead of entering their URL .

if you want i can send you the code , its just one script that does everything.

Thank you,
Laith