PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Set upload permission via members / email notification via hook?

  1. riskiii
    Member

    Problem to solve:
    Allow secretary to upload PDF file, get URL to send via email to email address alias for entire company. I trust secretary not to upload bad files.

    Would the simplest way be to put form on page restricted by members plugin roles, to limit access? Would I then use a post filter to echo URL? Is the form variables stored in a hash array that I would have access to?

    Any help appreciated, I hate to be tied to a desk for mundane tasks when I can empower them to do it themselves. But I don't want to spend the time training them to use the backend.

    Thanks Danny

    Posted 14 years ago on Wednesday September 22, 2010 | Permalink
  2. Is the secretary uploading the file and then needs to get the full path URL to that file so she can then send an email to the office with a link to that file?

    Couldn't you use the notifications setup so that the email itself is sent automatically, you could send to some sort of mailing list address that forwards to everyone in the office? Then all the secretary needs to do is submit the form and the rest is handled automatically.

    Either way you would have to use the Members plugin to limit access to the page the form resides on.

    Posted 14 years ago on Wednesday September 22, 2010 | Permalink
  3. riskiii
    Member

    It is a large company, 500+, and she (a group of admins as it were) usually does it in advance, and then waits until the time to send it, basically a draft waiting to be sent.

    There have also been time when they send the wrong one, and need to change it, I don't know that it would be possible to give them access at that level. Some of them are taxed to create a pdf :(.

    Anyway, internally how is the variable for the upload stored, as a shortcode only, or would I have access to the full path that I could then parse to build a url?

    thanks,
    Danny

    Posted 14 years ago on Wednesday September 22, 2010 | Permalink
  4. The upload is stored in the wp-content/uploads folder. The easiest thing to do would be to create a form for her to use to upload the file, and then on the confirmation text for that form output the field data for that field. It will output a full path URL to the file that was uploaded. So when she submits the form she will be able to get the URL on the confirmation message for that form. She can then copy-n-paste it for use in her email.

    Posted 14 years ago on Wednesday September 22, 2010 | Permalink