This week's book giveaway is in the Cloud forum.
We're giving away four copies of Terraform in Action and have Scott Winkler on-line!
See this thread for details.
Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

memFileSize to control the file in memory or on disk

Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I'm depending on struts in my application, and I have an option for uploading files in my application.

The problem is:

I want to upload the files and instantly save it to DB ==> so I'm getting the byte[] and write it to the DB, as I don't have permission to write files to disk before uploading and keep getting Access denied when uploading. I searched for a while and found that I can customize struts behaviour using memFileSize property, so I'm providing the configuration file of struts-config.xml as it also didn't work for me when uploading any file

<controller bufferSize="262144">

<set-property property="memFileSize" value="10M" />


What is the solution of this problem?

    Bookmark Topic Watch Topic
  • New Topic