File Upload Database Insertion

Home Forums Quform WordPress File Upload Database Insertion

This topic is: not resolved
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #3345
    lawrencepepper
    Participant

    In a form I am using the file upload option.

    I am also having the data from the form inserted into a mysql database.

    for the file field it is inserting the file name then the path in parenthesis:

    lenapie14.jpg (http://test.mysite.com/wp-content/uploads/documents/file.jpg)

    I just want it to insert the file name:

    file.jpg

    How can I do this?

    L

    #3351
    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.

    #3639
    lawrencepepper
    Participant

    Hello,

    I can not find that code anywhere in file.php.

    L

    #3643
    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.

    #3647
    lawrencepepper
    Participant

    I have gone through the file in Coda, did a search for this code and can not find it anywhere. What line number is it at?

    L

    #3648
    lawrencepepper
    Participant

    OK was looking in wrong file.php, there seems to be two of them.

    In any case I deleted the code and now I get a file upload error when trying to upload a file from a form.

    L

    #3649
    lawrencepepper
    Participant

    Found the problem.

    It is actually a plug in: WP Require Auth. See here: http://johnny.chadda.se/projects/wp-require-auth/

    Once deactivated the upload works. Have you come across this? Any ideas on how to fix. I really need this plug in to work.

    L

    #3659
    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.

    #3666
    lawrencepepper
    Participant

    OK,

    Found another plug in that works well with Quform.

    Thanks!

    L

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy