You understand correctly, the script that is using Net::FTP is on a linux machine which is my webhost. I am attempting to have the script upload a file from my home PC (a Windows 98 machine) to a directory on the linux machine.

So what you are saying, if I am understanding correctly, is that what I am trying to do is not something that Net::FTP is designed to do - ie, act as an FTP program between the linux server and my home computer...

If this is the case, it appears that I have a fundamental misunderstanding of Net::FTP and its capabilities. So I guess my question then would be can Net::FTP be used to have a script upload a file from a users home PC to the machine that the script is running on on the internet?

If not, is there another way to do this or can it only be done via the <FORM ENCTYPE=multipart/form-dat... method?

What I am overall attempting to do, which Net::FTP is a part of, is for a user to upload a comma delimnated text file (which is done via FORM), and then have the script pull fields from that file which include description fields and a local file location for a .jpg file. The script will then upload the .jpg file (theoritically via Net::FTP) and take the other elements from the previously uploaded text file to write new data files locally (on the host). Everything else about the script is working except the Net::FTP - but perhaps I am fundamentally wrong in supposing what Net::FTP is supposed to do...

-Matt :)

In reply to Re: Re: Re: Re: Struggles with Put in Net::FTP by mchiles
in thread Struggles with Put in Net::FTP by mchiles

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.