aspose file tools
The moose likes Struts and the fly likes upload to path in runtime, or upload to memory  :confused: Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "upload to path in runtime, or upload to memory  :confused: " Watch "upload to path in runtime, or upload to memory  :confused: " New topic
Author

upload to path in runtime, or upload to memory :confused:

Ashraf Fouad
Ranch Hand

Joined: Oct 07, 2001
Posts: 80
Dears,

I'm using struts 1.1, and I want to set the tempDir to a value not known untill runtime, I can set it when servlet initialize, as the location of deploying my application is dynamic, so I will get it and pass an appropriate value to the tempDir

I have read that the default value is determined by the container hosting the application, can anyone give me clearer understanding.

As I have only permissions to write to files under my J2EE App only, and the deployment may make directory my_application_name_1, or my_application_name_2, and so on, so I need to set the tempDir to a dynamic folder under my application.

If u know a better solution to get the files uploaded in memory not on disk it will be much better as I insert it directly to DB, by the way I tried to set memFileSize to large value, but from what I c Struts alawys write it to disk !!!

Thanks


Ashraf Fouad
SCJP 1.2, SCBCD 5
 
 
subject: upload to path in runtime, or upload to memory :confused:
 
Threads others viewed
Where is it Uploading??
memFileSize to control the file in memory or on disk
FileUploadException
Problem while uploading xls file through Servlet program.
uploading a file but want to restrict the type of files
MyEclipse, The Clear Choice