• Resolved Jake Ward

    (@jakeward)


    Hi,

    I’m just wondering if the plugin works with uploads via the front-end. I.e. with LearnDash essay submissions?

    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Darin Kotter

    (@dkotter)

    @jakeward Thanks for the question! It really depends on how those front-end uploads are being done but if they are using the typical WordPress provided upload functions, than yes, Safe SVG should validate if the item uploaded is an SVG or not.

    Thread Starter Jake Ward

    (@jakeward)

    Thanks @dkotter ! Do you know the functions which your plugin uses? Just si I can relay back to LD? Thanks!

    Plugin Support Darin Kotter

    (@dkotter)

    Yep, we hook into the wp_handle_upload_prefilter filter to check if the uploaded file is an SVG or not and if so, we run our sanitization on it. That filter is fired in the core _wp_handle_upload function which itself is called in multiple places, most notably in the wp_handle_upload function and wp_handle_sideload function.

    Thread Starter Jake Ward

    (@jakeward)

    Amazing, thanks @dkotter !

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

The topic ‘Front-End Upload’ is closed to new replies.