update dimensions replacing documents, add modified to image urls to get latest version
This commit is contained in:
parent
6f9fb06da3
commit
54b7c4be9a
3 changed files with 8 additions and 4 deletions
|
|
@ -359,6 +359,8 @@ def upload(request):
|
|||
file.uploading = True
|
||||
name, extension = request.POST['filename'].rsplit('.', 1)
|
||||
file.extension = extension
|
||||
file.width = -1
|
||||
file.pages = -1
|
||||
file.save()
|
||||
upload_url = request.build_absolute_uri('/api/upload/document?id=%s' % file.get_id())
|
||||
return render_to_json_response({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue