Hello,
I have tried to make jQUERY FILE UPLOAD
(http://blueimp.github.io/jQuery-File-Upload/) work with Active4d. It seems to
be easy but I can’t get right response from (Active4D) server or something else
is wrong.
I can’t get any errors to browser, the (green) progress bar just stays on.
I wonder if someone can help (share code or ).
best regards,
Karir
Server sends this to browser:
{"files":[{"name":"vetoalusta-2.png","size":902604,"url":"http:\/\/10.0.1.23\/testit\/vetoalusta-2.png","thumbnailUrl":"http:\/\/10.0.1.23\/testit\/vetoalusta-2.png","deleteUrl":"http:\/\/10.0.1.23\/testit\/vetoalusta-2.png","deleteType":"DELETE"}]}
— Server code.
…
$tiedosto_nimi:="vetoalusta-2.png"
$tiedosto_koko:=902604
$tiedosto_url:="http://10.0.1.23/testit/vetoalusta-2.png" //
"http:\/\/example.org\/files\/picture1.jpg"
$tiedosto_thumb:="http://10.0.1.23/testit/vetoalusta-2.png"//
"http:\/\/example.org\/files\/thumbnail\/picture1.jpg"
$tiedosto_deleteURL:="http://10.0.1.23/testit/vetoalusta-2.png" //
"http:\/\/example.org\/files\/picture1.jpg"
$tiedosto_deleteType:="DELETE"
// $tiedosto_error:="Filetype not allowed"
$json := new json
start json array($json; "files")
// for each([employee])
start json object($json)
add to json($json; "name"; $tiedosto_nimi; "size"; $tiedosto_koko;"url";
$tiedosto_url;
"thumbnailUrl";$tiedosto_thumb;"deleteUrl";$tiedosto_deleteURL;"deleteType";$tiedosto_deleteType)
end json object($json)
//end for ea
end json array($json)
$aika:=current time
write to console('aika $aika')
$json_text:=json to text($json)
write to console('json: $json_text')
//write('true')
write json($json)
— Server code.
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/