plupload icon indicating copy to clipboard operation
plupload copied to clipboard

Silverlight fails to upload with backslash multipart param

Open stevenhfotofix opened this issue 14 years ago • 2 comments

When attempting to upload a file with the following two configurations:

runtimes: 'silverlight', multipart_params: {file1RelativePath: ""},

It will not upload

The error is:

SCRIPT16389: System.Collections.Generic.KeyNotFoundException: [Arg_KeyNotFound] Arguments: Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.1.10329.0&File=mscorlib.dll&Key=Arg_KeyNotFound at System.Windows.Browser.ManagedObjectInfo.Invoke(ManagedObject obj, InvokeType invokeType, String memberName, ScriptParam[] args) at System.Windows.Hosting.ManagedHost.InvokeScriptableMember(IntPtr pHandle, Int32 nMemberID, Int32 nInvokeType, Int32 nArgCount, ScriptParam[] pArgs, ScriptParam& pResult, ExceptionInfo& pExcepInfo) plupload.silverlight.js, line 1 character 4182

This particular relativepath works fine with flash, html5 and html4.

chaning the multipart_params to {file1RelativePath: "\"}, allows the upload to work - but is incorrect for the other runtimes.

Thank you

stevenhfotofix avatar Aug 10 '12 15:08 stevenhfotofix

Why do you think it is incorrect for other runtimes? By using a single backslash you are simply escaping the second quote, which IS incorrect. Using double backslash is actually a recommended format for a case like this.

jayarjo avatar Oct 01 '13 20:10 jayarjo

It does not work with the other runtimes. The Silverlight processes the double backslash, whereas the others do not.

It is an inconsistent result across multiple runtimes. That is what needs to be fixed. All runtimes should handle the data the same way. As of this ticket, they do not.

Miyar avatar Oct 01 '13 21:10 Miyar