How do I upload a file in an EAP 6/7.0 web application?

Solution Unverified - Updated -

Issue

  • I cannot upload a file in EAP 6 on RHEL using Spring's org.springframework.web.multipart.MultipartFile, as I get errors like:

    java.io.FileNotFoundException: $JBOSS_HOME/standalone/tmp/work/jboss.web/default-host/FileUploadIssue/upload__6e0c3623_15aaf67e3ad__8000_00000001.tmp (No such file or directory)
    
  • Is there another way to upload a file using RestEasy?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content