• Hello.
    I’m still newbie in this WordPress things.
    Sorry for my bad english, english is not my first language.
    Currently i’m working, and i need to explore this WordPress.
    And now I’m stuck somewhere that i couldn’t understand.
    Hope u guys willing to help me. 🙂

    I’m using contact form 7 and contact form db.
    First i build a form where i can upload a file(mp3, mp4, flv, avi, and such) straight to my C directory.
    And I’m using contact form db, to record the details of whatever file i upload to the database phpmyadmin.

    In phpmyadmin, its only shows name, email, file name, file upload name, and such. But how if i want to show the URL of the file that i upload at my computer C directory?

    For example like this link:
    file:///C:/xampp/apps/wordpress/htdocs/wp-content/uploads/wpcf7_uploads/0487827367/Avicci-Wake-Me-Up.mp3

    I need that link to show up in the phpmyadmin.
    Thanks for your help 🙂

    https://wordpress.org/plugins/contact-form-7-to-database-extension/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    When CF7 uploads a file, it puts it in a temporary director, puts the file in the email to you then deletes the file. CFDB grabs a copy of that file and puts it in the database. No file remains on you disk after the form submission completes.

    The CFDB administration page shows the form submission data. Files are shown there with a link to download them from the database. If you display the form submissions using a short code such as [cfdb-table] then the short code will display the file names with a download link.

    If you want to save files to your disk instead, please see this article.

    Thread Starter esyalaa

    (@esyalaa)

    The example code that was given, save the path of the directory to the database. That article help me solve the issue 🙂 Thank you.

    But do you know how to show the url of the file that i uploaded to the database?

    For example:
    http://www.your-site.com/wordpress/wp-content/uploads/wpcf7_uploads/video.mp4

    Thanks 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘URL File Upload’ is closed to new replies.