PHP/Javascript upload progress bar not working

EvolutionChild

New Member
I'm using the Sitepoint upload/progress bar script which you can find here : http://www.sitepoint.com/html5-ajax-file-upload/ and my problem is that files will not upload and be copied onto the server. The only time it works is then Javascript and it is uploaded the good old fashion way.I downloaded the script and exported it into my website root folder and it doesn't work. So I started messing around with it and after a few hours I figured out that the problem came from when the Javascript does this : \[code\]xhr.setRequestHeader("X_FILENAME", file.name);\[/code\] or maybe when it is received in the php file like this \[code\]$fn = (isset($_SERVER['HTTP_X_FILENAME']) ? $_SERVER['HTTP_X_FILENAME'] : false);\[/code\]. I came to the conclusion after that if changed the \[code\]$fn\[/code\] to \[code\]true\[/code\] and entered a predefined file path to upload to the server.For my server I'm using WAMP with Apache version 2.4.2 and PHP version 5.4.3On the server I have a few subdomains installed like so : \[code\]website1.localhost.com/\[/code\], \[code\]website2.localhost.com/\[/code\]etc. I don't know if this may be a cause of why it wouldn't work.I tried activating modules like \[code\]header_module\[/code\] in the Apache httpd.conf file but nothing seem's to be working.A few months back on an other computer I was able to make this script work but now it isn't working and I have no idea what to try next to make this work. I really hope someone has an idea for me :)
 
Back
Top