• Resolved infernoprime

    (@infernoprime)


    Can this use to create a post submission form for logged in users. It would allow them to upload both images and files for reviews or game mods.

Viewing 16 replies (of 16 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @infernoprime

    Let’s say that your site URL (this is just an example) is

    https://mysite.com

    and the path to it on server is (the folder where WordPress is installed)

    /home/domains/mysite.com/public_html

    Now the folder where you want to upload files to is at

    /home/domains/mysite.com/public_html/storage/

    So you can modify this line

    $param['path'] = WP_CONTENT_DIR . $this->path_part;

    like this

    $param['path'] = '/home/domains/mysite.com/public_html/storage/';

    The second line, this one,

    $param['url'] = WP_CONTENT_URL . $this->path_part;

    would then go like this

    $param['url'] = 'https://mysite.com/storage/;

    Please note, however, that you need to make sure that such folder exists and is writable/readable.

    Kind regards,
    Adam

Viewing 16 replies (of 16 total)
  • The topic ‘post submission form’ is closed to new replies.