Save .doc/.txt file in database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agarwalsrushti
    New Member
    • Feb 2008
    • 63

    Save .doc/.txt file in database

    Hi,
    I ve made a job site in which i want the user to upload his resume on registration. But how where to store the uploaded resume in database.
    Ive taken the name of the resume file from the user in a text box. Bt im not geting where it should b stored and how.
    Plz help me out.
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    If you upload the text file to the server, why do you want to store it also in the db? You could as well upload the file and store the filename in the db.

    That way you have no problem in case of a special file, like a Word document ot other strange docs.

    Ronald

    Comment

    • agarwalsrushti
      New Member
      • Feb 2008
      • 63

      #3
      Ive stored the file name in database. Bt where can i view the files on the server for later use. I need them for retrieval.

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        You download and open them.

        Ronald

        Comment

        • agarwalsrushti
          New Member
          • Feb 2008
          • 63

          #5
          Hi,
          Im able to store the images file. What should be there to store .doc or .txt file
          I used the below code for images.

          [code=php]
          $allowedFileTyp es = array("image/gif", "image/jpeg", "image/pjpeg");
          [/code]

          Comment

          • Markus
            Recognized Expert Expert
            • Jun 2007
            • 6092

            #6
            doc: application/msword
            txt: plain/text

            Comment

            Working...