Skip to Content

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

Uploading a file to CM repository fails

All,

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?

Thanks,

Seema

replied

hi,

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();
<b>form.setEncodingType("multipart/form-data")</b>;

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

Regards,

Srinath

0 View this answer in context

Helpful Answer

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