Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

File upload question

When using the file upload plugin, it works correctly when you publish, but if you save as a draft the attached image/s don't save and won't be there when you open the draft back up if you close down the post. Is there a way to fix that? V 1.8.4.1

Thank you

Comments

  • This is a great question @BusMonkey.

    The answer is that FileUpload currently only fires on a save because the Media Model relies on the ID of the discussion/comment as the relationship key.

    You could modify the model to also work with drafts, but you would need to modify the draftmodel/postcontroller to handoff the data from the draft to the comment.

    This doesn't sound like a lot of fun to be honest.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

Sign In or Register to comment.