53
Views
2
Comments
Solved
[Multiple File Upload] How to upload files without extension?
multiple-file-upload
Web icon
Forge asset by Multi Uploaders
Application Type
Traditional Web

When I use Multiple File to upload files without extension, this message is displayed 
"[New Rich Text Document (2)]: Index and count must refer to a location within the string.
Parameter name: count "
Can you give me a solution? 

2023-12-07 07-51-40
Remco Dekkinga
 
MVP
Solution

Hi Nguyen and Ravi,

The reported issue has been solved in version 3.0.4.

Kind regards,

Remco Dekkinga

2022-08-03 04-32-50
Ravi Punjwani

Hi Nguyen,

This error is coming from the MultipleFileUpload_Extension which is an extension library used inside this forge component.

Here's the stack trace for the error:

Index and count must refer to a location within the string.
Parameter name: count
   at System.String.Remove(Int32 startIndex, Int32 count)
   at OutSystems.NssMultipleFileUpload_Extension.MIMEUtil.GetMimeType(String filename)
   at OutSystems.NssMultipleFileUpload_Extension.CssMultipleFileUpload_Extension.MssGetRequestFile(RCFileRecord& ssContent)
   at ssMultipleFileUpload.RssExtensionMultipleFileUpload_Extension.MssGetRequestFile(HeContext heContext, IRecord& outParamContent)

You might need to fix it manually by customizing the extension if it is quite urgent for you.

The C# code needs to be modified for cases where there's no file-extension available. In this error, it is trying to find the MIME type of the file, but fails due to no file-extension in your filename.

2023-12-07 07-51-40
Remco Dekkinga
 
MVP
Solution

Hi Nguyen and Ravi,

The reported issue has been solved in version 3.0.4.

Kind regards,

Remco Dekkinga

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.