I specifically wasn't going to impose any design suggestions lest implementation be constrained. So it is just perfect that the details are shared only as problems arise.
For the files storage, it is better to abstract from user the knowledge where and how they are located. Instead, a number properties can be provided: name, size and content. In the current particular implementation, since stdin is loaded into memory in toto anyway, the content can be stored in memory too. It would then be the responsibility of the user to figure out how and where to save the file to disk, if it is at all necessary. In the context of user, to write a file to disk from within JHP, the destination has to have writing permision for the user whom the CGI process is impersonated with. See Apache config and Administrative Tools/Component Services, COM+, IIS In and Out-of-Process respectively. --- "Sherlock, Ric" <[EMAIL PROTECTED]> wrote: > Hmm.... I even told myself it was about security! I'm pretty sure this > is a permissions issue & I need to configure the appropriate folder to > be writeable by the anonymous IIS user. Now I just need to figure out > the best way to do that. > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Sherlock, Ric > > Sent: Tuesday, 29 May 2007 15:53 > > To: Programming forum > > Subject: [Jprogramming] write uploaded data to file in JHP > > > > If I'm parsing multipart/form-data and I've the identified > > the portion of stdin that contains the file information, how > > do I go about writing that info to disk? > > > > Within my verb I've tried: > > data=. stdin '' > > data fwrite jpath '~CGI/tmp/myfile.txt' > > > > But this always returns _1. > > Is a security thing or have I missed something? ____________________________________________________________________________________Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
