cancel
Showing results for 
Search instead for 
Did you mean: 

Error when uploading file

D_Grandon
Explorer
0 Kudos

Hi all,

we just have upgraded our EREC system to Enhancement Package 4, and we have now lot's of issues when the candidates try to upload documents in their cockpit. Even if the type of document is ok or the file size is fine also, there is the following error message : Error when uploading; the file name is invalid, or the file is too big

We have this error with lot's of web browser : IE6-IE7-IE8-Firefox 2.xx-Firefox 3.6-Safari 3 and 4-Chrome

It is impossible to debug this error, there is no stop at the breakpoints.

Did anyone have any suggestion ?

Our system information :

EREC 604 SP 5

NW 701 SP 5

Thanks in advance

Dominique

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

We have the same issue. What we found was that the file we were uploading was stored in a folder on the server that was compressed. When we copied the file to the users laptop drive (which is not compressed) and then tried there it is fine. We have replicated this several times and the issue appears to be SAP handling of compressed files. Does anyone know any more on this?

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

To me a compressed folder is something the operating system or the web browser should compensate for - not the application. However it could be possible that the MIME size in the header doesn't match the actual file size and this is throwing off the ICM procesing of upload. If you have a repeatable situation (as you do with the compressed folder), I supose you can enter a support ticket and let development look at the situation and confirm which side the error is on. You might try performing the upload in both IE and Firefox to see if the situation is handled differently in the browsers.

Former Member
0 Kudos

We tried with multiple browsers and repeated tests showed that when the filesize was over 70K we got the issue consistently. We are logging a support ticket to progress (note we are on SAP_BASIS 701).

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Are you sure that the file isn't too big. There is an ICM parameter that globally controls the maximum size of request object. This is checked very low in the framework and the upload gets rejected before it even reaches the Web Dynpro layers. There would be no way to catch this error on the server.

D_Grandon
Explorer
0 Kudos

Hello Thomas,

no it is not a problem of size because it also happens with file of 100Ko.

Thanks

Dominique

Former Member
0 Kudos

Hello Dominique,

I do not think the browser has got to do anything with that. Please place an External Breakpoint on the code which is getting called on click of the upload button. There has to be some method or function module inside which will return this exception 'Invalid Filename'. Let me know if you see anything like this.

Thanks,

Sai

D_Grandon
Explorer
0 Kudos

Hello Sai,

we already put an external breakpoint on the first step of the method called by the button, but it does not stop on this breakpoint.

It looks like the error message is generated by javascript or is in the cache, but it is not possible to find where.

WD component : HRRCF_C_ATTACHMENTS_UI

View : VW_ATTACHMENT_DETAIL

Method : ONACTIONAPPLY

Thanks for your help

Dominique

Former Member
0 Kudos

Have a look at Thomas' Webdynpro ABAP Performance tool series. May be one of them can help.