title: Save file uploaded by user to wordpress uploads folder
body: <p>I have created a page in wordpress and in that i have put this form.</p>
  
  <pre><code>&lt;form action=""method="post"enctype="multipart/form-data"&gt;
  &lt;input type="file" name="file"&gt;&lt;br&gt;
  &lt;input type="text" placeholder="Your Name" name="name" /&gt;
  &lt;input type="submit" name="submit" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Now on clicking submit i want the pic uploaded by user to be saved in folder wp-content/uploads/[posted user name]</p>
  
  <p>Can anyone please help me with the backend processing part in wordpress.I have tried wp_upload_bits,but could nt go with it.</p>
  
  <p>Thanks in advance.</p>