Skip to content

Commit 9af32a5

Browse files
committed
update documentation
1 parent a91dd7b commit 9af32a5

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

doc/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ A minimal application may look like this::
7676
app.run()
7777

7878

79-
The tiny application exposes two urls: one for file upload and the other for file donload. The former url presents a simple file upload html and responds back in json with the content of the uploaded file. The file upload handler uses `request.get_array` to parse the uploaded file and gets an array back. The parameter **file** is coded in the html form::
79+
The tiny application exposes two urls: one for file upload and the other for file donload. The former url presents a simple file upload html and responds back in json with the content of the uploaded file. Here is an `example file <https://github.com/chfw/Flask-Excel/blob/master/examples/example_for_upload.csv>` for testing but you can upload any other excel file. The file upload handler uses `request.get_array` to parse the uploaded file and gets an array back. The parameter **file** is coded in the html form::
8080

8181
<input ... name=file>
8282

examples/README.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
For tiny_example.py, please upload only file that ends with 'csv', 'tsv', 'csvz', 'tsvz'. And if you upload any other formats, your browser will get::
2+
3+
Bad Request
4+
5+
The browser (or proxy) sent a request that this server could not understand.
6+
7+
So in these cases, please insert in the tiny_example.py the following imports according to your file:
8+
9+
import pyexcel.ext.xls # for xls file
10+
import pyexcel.ext.xlsx # for xlsx file
11+
import pyexcel.ext.ods # for ods file

examples/example_for_upload.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
id,name
2+
1,News
3+
2,Sports
4+
3,Game

examples/example_for_upload.xls

-6.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)