Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Uplload file and custom server implementation .net

$
0
0
Hi,

I am using SmartClient v9.0 I need to perform a file uploading.

On client side I have the follwing code:
formItems = [



{ name: "item1", type: "header", defaultValue: "Regarding Info" },
//----- data items -----\\
{ name: "RegardingType", title: "Type", type: "text", defaultValue: "Protocol", width: 300, canEdit: false },
{ name: "RegardingObject", title: "Object", type: "text", defaultValue: "prtcll 001", width: 300, canEdit: false },

{ name: "Name", title: "Name", type: "text", defaultValue: "", width: 300 },
{ name: "File", title: "File", type: "upload", width: 300 },
{
title: "Upload",
type: "button",
click: function () {
formEdit.saveData();
}

}

isc.Window.create({
ID: "modalWindow",
title: "Document",
autoSize: true,
autoCenter: true,
isModal: true,
showModalMask: true,
autoDraw: false,
items: [
isc.DynamicForm.create({
ID: "formEdit",
dataSource: mediaLibrary,
autoDraw: false,
left: 5,
top: 10,
width: 350,
padding: 4,
fields: formItems
})
]

});


I could select the file.

On server Side i have a Generic ASP.net Handler in the processRequest method i can read the parameters on requestBody
{"RegardingType":"Protocol","RegardingObject":"prt cll 001","Name":"Test","File":"C:\\Users\\pb00125\\Des ktop\\WNODKServiceModule\\appunti.txt"}

the file contains the File path, but how to get the uploaded file?

Thanks,

Viewing all articles
Browse latest Browse all 4756

Trending Articles