• Resolved bhasic

    (@bhasic)


    I’m using cfdb to save submissions to database and I’m having problems with file attachments. Is it possible with Pro version to get the saved files URL’s saved to database at submit so that when submissions are viewed in a table I would have a link to the file or wrap it in img src to display images in the table?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter bhasic

    (@bhasic)

    I get file URLs in database but how can I display them in table and in PDF when I submit multiple images? URLs are comma separated and I would need to wrap each URL to img src HTML tags.

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello @bhasic ,

    Multiple files will return an array and it is being separated by comma.

    We can help you to achieve your request but it requires custom coding, can you provide the link of the plugin “cfdb” you used to save the data?

    Also, please provide a screenshot of the table display that is being saved.

    Consider upgrading the pro version and have a better control on files.

    Thanks,
    Glen

    Thread Starter bhasic

    (@bhasic)

    I have several forms, tables and PDF’s of them that I need this to work. Tables are viewed as HTML-tables and jQuery datatables. In PDF’s just normal HTML-table.
    I Guess something like this would work for HTML-table views and PDF’s:

    
    $images = explode(",",$row['image']);
    
    if(sizeof($images) > 0 ){
      foreach($images as $image){
       echo '<img src="images/'.$image.'">' ;
       echo "<br />"; 
      }
    }
    

    I am planning to use Google drive with WordPress and will purchase Pro Remote Storage.
    Plugins i’m using:
    https://cfdbplugin.com/
    https://ww.wp.xz.cn/plugins/send-pdf-for-contact-form-7/

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

The topic ‘File URLs in database’ is closed to new replies.