• Inerea

    (@inerea)


    Thank you for this wonderful plugin.
    I have created a project and in the front-end I have added the shortcode:
    [wpdadiehard project_id=”3″ page_id=”10″]
    everything perfect, the form is seen in the front-end and the user can fill it out and the data is saved in the table.
    The problem is that I need the user to send a pdf from the front-end form, I don’t know what steps to follow.
    The user must not be a registered user.
    Excuse my English, if you need more explanation, please let me know.
    Thanks and happy weekend

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi @inerea,

    Welcome to WP Data Access!

    If I understand your question correctly, you want to be able to upload files? Unfortunately, this is not yet supported. It is on my to do list…

    Sorry,
    Peter

    Thread Starter Inerea

    (@inerea)

    Hi Peter,
    first, thank you for listening to me, I hope you can develop that function soon. For my project that function is necessary, so I will try to find a solution. I’m going to install in the frontend the plugin Contact Form 7, which works perfectly with files. I will fetch the data from the form and insert it into the table. I think it can be a solution: Frontend => Contact Form 7, Backend => WP Data Access and in the middle of both work with PHP hooks.
    If you have any better ideas, I appreciate your opinion.
    Thanks,
    Nerea

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Nerea,

    If you can write your uploaded files to a public folder, you can use dynamic hyperlinks to add links to your files. If you store the filename for example in column file_name, the dynamic hyperlink just needs to concatenate your public path and file name. Dynamic hyperlinks are explained here:
    https://wpdataaccess.com/docs/documentation/data-explorer/dynamic-hyperlinks/

    This will only work with files on public URLs. Will that work for you? Or do you need some kind of protection to allow only specific users to see your files?

    Thanks,
    Peter

    Thread Starter Inerea

    (@inerea)

    Hi Peter,
    Users are the ones who send files through a form. Files should only be visible to the administrator.
    I am working with the Contact Form integration, I have already managed to insert data from the form to the table, it’s a lot of work… so I’m desire that some WP Data Access update will allow to upload files.
    Thanks,
    Nerea

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi Nerea,

    >>> Users are the ones who send files through a form. Files should only be visible to the administrator.

    Thanks for the info! That clarifies it.

    Thanks,
    Peter

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘front-end upload attachment’ is closed to new replies.