• 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

uploading servlet

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i have problem regarding UploadFile Servlet
It is running successfully on my local machine.
But when i come across the network and want to upload the
file from clint machine it througing exception
:java.lang.IllegalArgumentException: Not writable: /home/cyansoft/public_html//data
i am using the of com.oreilly.servlet.MultipartRequest package.
i am using the url:
URLwebTempPath = getServletContext( ).getRealPath("/")+"/" +"data";
and using MultipartRequest mpr = new MultipartRequest(
request,webTempPath,10 * 1024 * 1024);
to upload the file.
Will someone help me why it is not working from client machnie.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like a permissions error to me.
Verify that the user under which your container is running has permissions to write to that directory.
 
abhijit sane
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thnks lot,
Appliction is working.
-Abhijit
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic