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