Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Uploading a file to CM repository fails


I am trying to upload a file to the CM repository and I get the following error:

"<file> does not exist, or file is empty; you cannot upload empty files."

I applied the solution specified in SAP Note 898637, but the same problem persists. The version I am using is <b>NW 2004S SP5</b>.

Any configurations I might have missed?



Former Member
Former Member replied


I guess you are writing a custom code to upload files into CM Repository? Are you using FileUpload Component?

If you are using it,make sure that you have added the following in a dynpage

Form form = this.getForm();

In case of a JSPDynPage make sure that the following is added in the JSP.

<hbj:form id="myFormId" <b>encodingType="multipart/form-data</b>">

Hope it helps



0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question