• wildapache

    (@wildapache)


    Hello.

    I am developing an upload files form with 3 files to upload max.

    I will works like:

    1. User chose an image
    2. Chosen image right away uploading via Ajax

    It works fine, but I want to create another thing.

    I want to create like a COVER image with no possibility to DELETE IT, I mean the POST can’t be posted/updated without 0 images.

    Cover image – I mean is a thumbnail of post.

    The problem is :

    1. User click EDIT POST
    2. Delete all images
    3. Just leave the edit form without saving/update it.

    I want to understand how I logically should be works.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator threadi

    (@threadi)

    I’m a little confused. Are you talking about users on the front end of your website, or are you referring to editors on the back end? If the latter, which editor do you use where this form is displayed?

    Thread Starter wildapache

    (@wildapache)

    I am created a front-end form to create and edit the post, after I added a possibility to upload an images (attachments) to this post. When user click edit post he can view your images (attachments) in it and click delete if he want to delete it.

    Now I want thinking how to create an a COVER (thumbnail) images, in way which user can’t delete it.

    For example if user click edit-post, after he can delete all images and leave the post (without sending it to update (submit button). So, post remain with a 0 images (attachments).

    • This reply was modified 9 months ago by wildapache.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Upload files with a cover image’ is closed to new replies.