WinJS upload to PHP Server

endy66

New member
Apr 17, 2014
3
0
0
Visit site
Hi everybody

I need some help with uploading a File from a Javascript / HTML App to a PHP Server using WinJS. Everything looks good, the Server gives me a "200 OK" answer, but no File was saved on the Server. The upload application is built on the sample from
MS.
I dont know why the file wont be stored on the Server. Im started with a simple PHP-Script on the Serverside:

<?php
$uploaddir = '/home/app/uploads/';
$uploadfile = $uploaddir . basename($_FILES['Filename']['name']);
move_uploaded_file($_FILES['Filename']['tmp_name'], $uploadfile);
?>

Sorry for my bad english:)!
Can somebody help me out of my problem?
 

MasoInar

New member
Sep 28, 2014
12
0
0
Visit site
Hi,

Can you add some logging to your php script to see if there's anything in $_FILES array? Also how big files are you submitting? If you have big files, you might need to increase max file size in php.ini.

Maybe you can make simple html web page that contains form with file input and check if it works from there?
 

Members online

Forum statistics

Threads
326,385
Messages
2,248,284
Members
428,494
Latest member
LoisJAbdus