AnantLabs / ocupload

Automatically exported from code.google.com/p/ocupload
0 stars 0 forks source link

I m not able to upload the file #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I m not able to upload the file,
i just downloaded your code and made the necessary changes
1. including upclick-min.js
2. and changed  upclick function like this
<script type="text/javascript"> 
var uploader = document.getElementById("uploader").files[0].name;

   upclick(
     {
      element: uploader,
      action: 'upload.php', 
      onstart:
        function(filename)
        {
          alert('Start upload: '+filename);
        },
      oncomplete:
        function(response_data) 
        {
          alert(response_data);
        }
     });

</script> 
3. And created php script

but in the php script i cannot get the correct file name
when i alerted the variable $tmp_file_name i am getting the value 
C:\wamp\tmp\php93A6.tmp not the file name. Please help me

Original issue reported on code.google.com by as...@wazzam.in on 20 Dec 2012 at 6:57