Hi guys i need a urgent help here.i have an educational site.I want a facility where a user can come and upload his resume.now can anyone tell me how can i make the user use the upload module to upload his resume.please help.

Comments

cog.rusty’s picture

You mean to upload it in a file and not just post the content? Enable the upload module, give users permission to upload files, and they can create a story with an introductory text and attach the file.

If you prefer, instead of a "story" they could use a new content type which you have created, say "resume", so that you can have a better handle on how and where they appear and where they are listed. You will also have a link like "/node/add/resume" which then you can put on any page you want.

henry4’s picture

ok thats fine with that thank you but when i'm uploading the files with same name its getting saved in the same folder without getting overwritten.can any one just tell me where is this functiuomality present in this uploadmodule.php.please help

cog.rusty’s picture

What functionality?

The resumes will not be overwritten. Even if the users upload them with the same name, the second name will change a little (with a "_0" suffix) and they will not be overwritten -- they will be both available in their nodes. If a user doesn't want the old file he can delete it using the same upload form. With this method, you don't need to care how Drupal stores them in the files directory -- only the node and the upload form matters.

If you don't like how the files are stored, another similar option is to install the "attachment" module together with the "filemanager" module, which use a different directory for each node's attached files.

Using other modules, there are other ways to upload files in a directory, but I don't think you want to make the users do that.

henry4’s picture

But i have another doubt i don't want the user to create a content i just want to provide to the user file attachment field where he can browse for the required file and upload it.

cog.rusty’s picture

In Drupal a node (a "story", a "page", a "resume", whatever) is used for user submissions and this is the way that the system figures out to whom it belongs, what it is, and what to do with it. It also takes care of presenting it and categorizing it (sometimes with the help of contributed modules).

You don't want attachments in nodes? It can be done but you must think how exactly it is going to be used. You want users to upload the files straight to a directory and then you will write yourself some code to find out whose resume it is and to present the files? Or the user will tell you what the file is and you will put them in nodes yourself?

=====

Edited to add: If you go with nodes, with the nodefamily module you can restrict the number of "resume" nodes that each user can create to only one.

Or with the nodeprofile module you can attach files to a user profile.

henry4’s picture

thanks a lot of for all that replies.