Skip to content
This repository has been archived by the owner on Dec 4, 2019. It is now read-only.

Feedback for completed upload #7

Closed
benel opened this issue Sep 19, 2011 · 4 comments
Closed

Feedback for completed upload #7

benel opened this issue Sep 19, 2011 · 4 comments
Assignees
Labels

Comments

@benel
Copy link
Member

benel commented Sep 19, 2011

For now, a JSON message is shown instead of the updated form.

Workaround: Get the URL again.

@gignonje
Copy link

gignonje commented Mar 2, 2012

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

@ghost
Copy link

ghost commented Mar 12, 2012

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.

@yipenghuang
Copy link

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

@benel
Copy link
Member Author

benel commented Oct 27, 2012

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

@ghost ghost assigned benel Nov 20, 2012
@benel benel closed this as completed in 384a306 Nov 20, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants