Giter VIP home page Giter VIP logo

Comments (4)

gignonje avatar gignonje commented on June 19, 2024

Bug Reproduction Scenario:

  • Click the add button (+) on the bottom of the page
  • Click browse on the page that open and choose the file you want to upload, then click "Déposer"
  • You will now see the Json feedback

from tire-a-part.

 avatar commented on June 19, 2024

Bug Reproduction Scenario: As described by jeremygignon.

This issue can be solved very simply by bypassing the submission of the form to bring the user immediately to the updated form.
However, an improved solution using the existing JSON would be to remove the "submit" value of the button. Instead of posting the form, the information needs to be processed separately (e.g. using AJAX) and when the form is updated or in an error state, feedback can be displayed onscreen dynamically without reloading the page using Javascript.

from tire-a-part.

yipenghuang avatar yipenghuang commented on June 19, 2024

Bug Reproduction Scenario:
1- click the button on de bottom of the page with de symbol "+".
2-
2.1- click the button "Parcourir", choose a file named by UTF-8 characters in the dialog box and then click open.
2.2- click the button "Parcourir", choose a file named by not-UTF-8 characters in the dialog box and then click open.
3-
3.1- JSON feedback with the succes of the upload
msg: {"ok":true,"id":"a5f7207630b482e5e3020dd99531989e","rev":"2-2f7f716af6dc956c397c589d38b1d760"}
url: http://tire-a-part.test.hypertopic.org/a5f7207630b482e5e3020dd99531989e
3.2- JSON feedback with the error of the upload
msg: {"error":"bad_request","reason":"Attachment name is not UTF-8 encoded"}
url: http://tire-a-part.test.hypertopic.org/a5f7207630b482e5e3020dd995320d1f

*with these msgs shown, we can not return to the edit page of article unless we click the button "return" of the web browser

from tire-a-part.

benel avatar benel commented on June 19, 2024

File uploads could be done in the background by using a library like jQuery File Upload.

from tire-a-part.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.