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. -- --------------------------------------------------- Web Support Officer Room 2.51, Law and Commerce Building Faculty of Education, Humanities, Law and Theology Flinders University Phone (08) 8201-3628 (before 1:00pm) Phone (08) 8201-3990 (after 1:00pm) ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org