How do we upload files

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

You can obtain the MultipartRequestWrapper from the ServletActionContext or by utilizing the fileUpload interceptor. The fileUpload interceptor is preferred.

Note

See the file upload page for more examples and advanced configuration

Ask the ServletActionContext

...

Code Block
java
public File getMyDoc()
public ContentTypeString getMyDocContentType()
public String getMyDocFileName()

...