Hi @marius here below my replies:
The error occurs when i click the upload button in order to upload for example a simple image file.
The code for the upload on the client side is the simple code snippet showed from uppy doc examples.
With the upload function i’m producing a POST call with all the file data set, with the error code in reply:
Message: "Value cannot be null.
↵Parameter name: encodedValue; at tusdotnet.Models.Metadata…ctor(String encodedValue)
↵ at tusdotnet.Models.Metadata.Parse(String uploadMetadata)
↵ at tusdotnet.IntentHandlers.CreateFileHandler.Invoke()
↵ at tusdotnet.TusProtocolHandlerIntentBased.Invoke(ContextAdapter context)
↵ at tusdotnet.TusCoreMiddleware.Invoke(HttpContext context)
↵ at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
↵ at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.InvokeCore(HttpContext context)
↵ at Ts.Selene.ApiServer.Errors.ExceptionMiddleware.InvokeAsync(HttpContext httpContext) in D:\Main Repo\Adam\src\App\Selene\Ts.Selene.ApiServer\Errors\ExceptionMiddleware.cs:line 31"
Severity: “Error”
StatusCode: 500
I’m using tusdotnet server:
Here you can see my config:
“TusConfiguration”: {
“AccessPointType”: “myaccesspointconfig”,
“PathRequest”: “/files”,
“PathStore”: “C:\myapp\tusfiles\”
}
}
This is the code i’m using for the upload:
this.uppy.use(Tus, {
endpoint: “myendopointpath”,
headers: {
authorization: “mytokenforauth”,
},
metaFields:null
})
Please let me know if i missunderstood somethings.
Waiting for you reply.
Thanks 😉