Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery php image upload using http://valums.com/ajax-upload/
    primarykey
    data
    text
    <p>Iam looking for jquery php image upload exactly given in <a href="http://valums.com/ajax-upload/" rel="nofollow">http://valums.com/ajax-upload/</a>. i tried code given in the above site. but its not working . as iam newbie.. i tried below code.</p> <pre><code>&lt;?php $uploaddir = 'c:\xampp\htdocs\ajax-upload\server\uploads\'; $uploadfile = $uploaddir . basename($_FILES['file']['name']); if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile)) { echo "success"; } else { // WARNING! DO NOT USE "FALSE" STRING AS A RESPONSE! // Otherwise onSubmit event will not be fired echo "error"; } ?&gt; </code></pre> <p>this is my html code</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt; &lt;link href="fileuploader.css" rel="stylesheet" type="text/css"&gt; &lt;style&gt; body {font-size:13px; font-family:arial, sans-serif; width:700px; margin:100px auto;} &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;p&gt;&lt;a href="http://github.com/valums/file-uploader"&gt;Back to project page&lt;/a&gt;&lt;/p&gt; &lt;p&gt;To upload a file, click on the button below. Drag-and-drop is supported in FF, Chrome.&lt;/p&gt; &lt;p&gt;Progress-bar is supported in FF3.6+, Chrome6+, Safari4+&lt;/p&gt; &lt;div id="file-uploader-demo1"&gt; &lt;noscript&gt; &lt;p&gt;Please enable JavaScript to use file uploader.&lt;/p&gt; &lt;!-- or put a simple form for upload here --&gt; &lt;/noscript&gt; &lt;/div&gt; &lt;script src="fileuploader.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script&gt; function createUploader(){ var uploader = new qq.FileUploader({ element: document.getElementById('file-uploader-demo1'), action: '../server/upload.php', debug: true }); } // in your app create uploader as soon as the DOM is ready // don't wait for the window to load window.onload = createUploader; &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload