juliomalegria / django-chunked-upload

Upload large files to Django in multiple chunks, with the ability to resume if the upload is interrupted.
MIT No Attribution
218 stars 73 forks source link

Change offset field type in ChunkedUpload model to BigIntegerField #14

Closed hackdna closed 9 years ago

hackdna commented 9 years ago

Offset is a PositiveIntegerField with a max value of 2147483647 when PostgreSQL is used (https://code.djangoproject.com/ticket/12030#comment:14). This prevents uploads of files that are size of 2GB and larger.

juliomalegria commented 9 years ago

You're right @hackdna. That field should be a BigIntegerField.

hackdna commented 9 years ago

Thank you very much for a quick fix. Any idea when will this change make it to PyPI?

juliomalegria commented 9 years ago

I was kinda waiting for a bigger change for the next release, but I guess I could push it to PyPI. I'll try to do it today.

hackdna commented 9 years ago

That would be great. We have a use case for uploading large files.

juliomalegria commented 9 years ago

Version 1.0.5 in PyPI :)

hackdna commented 9 years ago

Installed and tested it - works fine, thank you!

juliomalegria commented 9 years ago

:+1: