• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question How do I require uploading images when posting to a blog?

nguyenvanphu

New Pleskian
I am using Sngine 3.11

How to force users to upload images when posting to blogs (because there is no forced upload feature by default)

I used required attribute but it didn't work

HTML:
<div class="row form-group">

<label class="col-md-2 form-label">

{__("Cover")}

</label>

<div class="col-md-10">

<div class="x-image">

<button type="button" class="btn-close x-hidden js_x-image-remover" title='{__("Remove")}'>



</button>

<div class="x-image-loader">

<div class="progress x-progress">

<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>

</div>

</div>

<i class="fa fa-camera fa-lg js_x-uploader" data-handle="x-image"></i>

<input type="hidden" class="js_x-image-input" name="cover" required>

</div>

</div>

</div>

Can you help me?
 
Back
Top