Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Unexpected multiple requests with file upload

    SmartClient Version: v13.1p_2026-04-24/AllModules Development Only (built 2026-04-24)

    Hi, from the documentation: “Due to browser security restrictions, at most one request with a file upload can be sent in a queue.”

    However, I’m seeing that this doesn’t seem to be the case.

    With the following use case, if I fill in the fields and select a file, I see two separate requests, without any queue (and no warnings in the dev console):

    Code:
    isc.DynamicForm.create({
        ID: "aForm",
        width: 400,
        height: 100,
        top: 0,
        left: 20,
        dataSource: "uploadTest",
        items: [
            {name: "title"}
        ]
    });
    
    isc.DynamicForm.create({
        ID: "uploadForm",
        width: 400,
        height: 100,
        top: 50,
        left: 20,
        dataSource: "uploadedFiles",
        items: [
            {name: "uploadTestId"},
            {name: "file", title: "File"}
        ]
    });
    
    
    isc.Button.create({
        title: "Save Form",
        top: 130,
        left: 20,
        click: function(){
            isc.RPCManager.startQueue()
            aForm.save()
            uploadForm.save()
            isc.RPCManager.sendQueue()
        }
    });
    I’m not sure whether there’s an issue or if I’m missing something.
Working...
X