[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-WebCGI] File Upload cgi - Yet again...



on 3/31/00 2:26 AM, Adam Jenkins at adam.jenkins@flinders.edu.au wrote:

> Hi,
> 
>> I need a file upload cgi - just something that will let the clients upload
>> a file which the server will place in a single directory and then direct the
>> user to another web page.
> 
> I had very minimal success, but I guess I had some. Basically, I have
> a cgi while will accept file uploads so long as they are under a
> certain size. It is this size restriction which is the big problem,
> and I have yet to work out how to get around it. I am not sure how
> well it is working, as I haven't touched it for months and left it as
> an unfinished project, but you can have a look if you are interested.
> 
> The reason I haven't finished it, though, as that now I'm using an
> alternative procedure. With WebStar there is a file upload plug-in,
> so what I do is have people use that to upload the file, and then
> send them automatically to a page which gets the details of the file
> and feeds that into a perl cgi. That cgi then creates the index page,
> or builds links, or does pretty much whatever I want - including, in
> one instance, cleaning up the html tags. In order to make it easier
> on the user, I also use that cgi to display the contents of the
> upload directory in the form as a pull down menu, so that they don't
> have to recall the filename.
> 
> Clearly it would be much better if I could handle larger file sizes.
> The problem, as far as I understand it, is that there is a 32k limit
> on post transfers or something, and that you need to do something
> special to read more than 32k. Webstar has an apple event,
> WSAPI_ReadHTTPData which can be read multiple times to get over this
> problem, but I don't know if it is possible to use this in Perl, nor
> whether or not it would actually work.
> 
> Regards,
> 
> Adam.
In a message on Tue, 28 Sep 1999 23:32:29 -0700, Bruce Van Allen
<bva@cruzio.com> wrote:


>At 3:41 PM +0930 9/29/99, Adam Jenkins wrote:
> Hi!
>>
>>I'm having a bit of trouble, which may or may not be possible to solve.  I
>>need to allow people to upload to one of my mac web servers, but I don't
>>want to give them full ftp access. So I thought that it would be a cool
>>idea to give them limited access via the web browser ftp form thing.  I had
>>wished to use cgi.pm, but was told (in the cgi.pm information) that file
>>upload does not tend to work very well with Macs, if at all.>
>
>Hmmm. What version? Mine work fine with current CGI.pm installations.
>With earlier versions there were some problems for folks using
>Windows...
>
>>
>>The problem? It appears that I am limited to files of around 20k. This is
>>bareable, but it would be best if there wasn't such a small size limit to
>>the files. I gather that this is a property of the file upload function,
>>not perl per se, but I am wondering if MacPerl can get around this.  Is it
>>possible?  Or do I need to work in C or something to make this happen?
>
>I haven't had this problem either. Several sites I've developed,
>using both CGI.pm and the older cgi-lib.pl, handle files larger than
>20k without problem.
>
>Let's see your code, especially the part that catches and parses the
>uploaded material..
>
>
>- Bruce
>
>__Bruce_Van_Allen___bva@cruzio.com__Santa_Cruz_CA__
>
>==== Want to unsubscribe from this list?
>==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org

Perhaps bruce could enlighten us with some working code...





==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org