pashpashpash / vault-ai

OP Vault ChatGPT: Give ChatGPT long-term memory using the OP Stack (OpenAI + Pinecone Vector Database). Upload your own custom knowledge base files (PDF, txt, epub, etc) using a simple React frontend.
https://vault.pash.city
MIT License
3.25k stars 306 forks source link

I want to use the article image as the cover image Sngine blog #96

Open nguyenvanphus opened 2 weeks ago

nguyenvanphus commented 2 weeks ago

Sngine 3.11

I have a problem that I need help with:

I want to Force users to upload images when posting (because upload does not have a mandatory function)

Can you help me?

I used the required attribute but it didn't work

`

            <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>`

__feeds_article.tpl.txt

Attach files 1 Attach files 2

blogs.tpl.txt blogs-upload.txt