Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StorageDownloadView download without end of line symbols #94

Open
Radren opened this issue Mar 31, 2015 · 4 comments
Open

StorageDownloadView download without end of line symbols #94

Radren opened this issue Mar 31, 2015 · 4 comments

Comments

@Radren
Copy link

Radren commented Mar 31, 2015

Trying to download file from server, but it is downloaded without EOL symbols (initial file has EOL symbols - '\n'), I obtain file with one continuous string.

How can I download files with EOL characters?

@Radren Radren closed this as completed Mar 31, 2015
@benoitbryon
Copy link
Collaborator

@Radren: just seen the issue and it is closed already... did you find a solution?
Is there something we can add (in documentation, in API, ...) to make things clear about this question?

In other words, how can we improve django-downloadview for the next ones who come with the same question?

@Radren
Copy link
Author

Radren commented Apr 1, 2015

Hello,

sorry Im noob in programming. In my txt files I use '\n' character to mark end of line. When I download file by django-downloadview it does not understand '\n' EOL character. I change it to '\r\n' and it starts work.

May be it will be userfull for someone else to say explicite in documentation that EOL is '\r\n'.

Вторник, 31 марта 2015, 6:57 -07:00 от Benoît Bryon [email protected]:

@Radren : just seen the issue and it is closed already... did you find a solution?
Is there something we can add (in documentation, in API, ...) to make things clear about this question?
In other words, how can we improve django-downloadview for the next ones who come with the same question?

Reply to this email directly or view it on GitHub .

@Natim
Copy link
Collaborator

Natim commented Apr 1, 2015

I think it is a bug if django-downloadview strip \n from the file.

@Natim Natim reopened this Apr 1, 2015
@benoitbryon benoitbryon added the bug label Apr 1, 2015
@benoitbryon benoitbryon added this to the Soon milestone Apr 1, 2015
@benoitbryon
Copy link
Collaborator

I think it is a bug if django-downloadview strip \n from the file.

Agreed.

Perhaps something related to binary VS text mode when we open files. I have no other idea at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants