Skip to content

Commit 47b1467

Browse files
committed
adding note to README about folder permissions
Signed-off-by: Vanessa Sochat <[email protected]>
1 parent 558f7c8 commit 47b1467

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
1414
The versions coincide with releases on Github.
1515

1616
## [0.0.x](https://github.com/vsoch/django-nginx-upload/tree/master) (0.0.x)
17+
- fixing urls to have correct slash parsing, adding instruction to README (0.0.12)
1718
- updating nginx version (0.0.11)
1819
- initial release (first verison released) (0.0.10)
1920

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ see how I stumbled trying to find the best approach. I was so determined to make
3232

3333

3434
### Chunked Upload
35+
3536
The idea of a chunked upload speaks for itself - you break a file into chunks, and upload them separately instead of the entire thing in one go. This module to implement chunked uploading for Django worked beautifully in the browser, and if you need a good "out of the box" module this is a good approach. It was very easy for me to plug the uploader into a pretty progress bar, and my result looked like this:
3637

3738
![img/progress.png](img/progress.png)
@@ -58,6 +59,12 @@ To bring up the server:
5859
docker-compose up -d
5960
```
6061

62+
Then you need to create the nginx subfolders (this folder is bound to both containers):
63+
64+
```bash
65+
sudo mkdir -p images/_upload/{0..9} && sudo chmod 777 -R images/_upload
66+
```
67+
6168
Then to upload, you can use either the web interface or a command line utility [push.py](push.py)
6269

6370
## Web Interface

VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.12

upload/urls.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424

2525
urlpatterns = [
2626
path('admin/', admin.site.urls),
27-
re_path(r'^complete?/$', views.upload_complete, name='upload_complete'),
27+
re_path(r'^complete/?$', views.upload_complete, name='upload_complete'),
2828
path('robots\.txt/',TemplateView.as_view(template_name='main/robots.txt',
2929
content_type='text/plain')),
3030

3131
re_path(r'^$', views.UploadView.as_view(), name="index"),
32-
re_path(r'^table?/$', views.TableView.as_view(), name="table"),
32+
re_path(r'^table/?$', views.TableView.as_view(), name="table"),
3333

3434
]
3535

0 commit comments

Comments
 (0)