Storing file upload name to mysql database

Home Forums Quform PHP Storing file upload name to mysql database

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Ally 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28544

    Web2uGuy
    Participant

    I have created a form that includes a group upload. The group upload allows up to three images. I am trying to save these file names into the database.

    I tried using:
    ‘cat_image’=> $file[‘name’][0],
    ‘cat_image2’=> $file[‘name’][1],
    ‘cat_image3’=>$file[‘name’][2],

    This kind of works. The issue is that if dusring the upload the file name changed because spaces were taken out or there was duplicate file names and it was appended with 1_ then the file name of the actual upload is not what is written to the database.

    If I use $fileData[‘filename’] I get the proper name, but only for the last upload. and $fileData[‘filename’][0] does not work….

    What am I missing

    #28580

    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    • This reply was modified 5 months ago by  Ally.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Be inspired. © 2019 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy