ok "the problem” solved. 

I updated jquery file upload plugin from 9.12.3 to 9.12.5! Now it works fine.

Karir.

> Tom DeMeo <tde...@walthamsoftware.com> kirjoitti 3.8.2016 kello 16.53:
> 
> Hi,
> 
> Just a guess, but you seem to be following the setup instructions here:
> 
> https://github.com/blueimp/jQuery-File-Upload/wiki/Setup#using-jquery-file-upload-ui-version-with-a-custom-server-side-upload-handler
>  
> <https://github.com/blueimp/jQuery-File-Upload/wiki/Setup#using-jquery-file-upload-ui-version-with-a-custom-server-side-upload-handler>
> 
> Your server code is sending back a hardcoded response, instead of receiving 
> the file on the server, evaluating it, and returning the required data. There 
> is a section in the Active4D reference docs on File Uploads that you should 
> review.
> 
> Your test file has a different name than in the setup example. You’ve 
> hardcoded the file size as the exact same size as the example (902604). 
> 
> Is the file you are using really that size? 
> 
> 
> Tom DeMeo
> 
> 
>> On Aug 3, 2016, at 9:10 AM, Kehitys <kehi...@troxia.com> wrote:
>> 
>> 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
>> Active4D-dev@aparajitaworld.com
>> http://list.aparajitaworld.com/listinfo/active4d-dev
>> Archives: http://active4d-nabble.aparajitaworld.com/
> 
> _______________________________________________
> Active4D-dev mailing list
> Active4D-dev@aparajitaworld.com
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/

_______________________________________________
Active4D-dev mailing list
Active4D-dev@aparajitaworld.com
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/

Reply via email to