question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

uploading files via /staticfiles creates corrupted/altered copies instead

See original GitHub issue

Describe in one or two sentences why you’re opening this issue:

Tell us a bit about yourself

  • Version of JekyllAdmin I’m using <hint: use bundle show to check>: 0.1.0
  • Version of Jekyll I’m using <hint: use bundle show to check>: 3.2.1
  • Operating System <e.g. OS X, Windows>: Windows 7
  • Browser <e.g, Safari, Chrome>: Chrome

Steps to reproduce

Navigate to http://localhost:3000/admin/staticfiles Upload an image file via button api or drag-n-drop api Upload a .rb file similarly

Expected

Find both files listed.

Actual

Image file thumbnail doesnt render. Actually, the image file is a corrupted file now. .rb file is listed. Open the file via Explorer for editing. You will see an extra empty newline added after every existing line.

Other details

Tested with .jpg, .png. No problems when uploading html files.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ashmarolicommented, Sep 1, 2016

@mertkahyaoglu were you able to reproduce this on your local windows machine? Just confirming if its not something due to my local system configuration.

1reaction
benbaltercommented, Aug 29, 2016

You will see an extra empty newline added after every existing line.

I suspect this may be a windows line ending issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manually preventing data corruption in relatively static files
The process involves storing two copies of each file that you don't want to get corrupted, creating a list of SHA-512 hashes for...
Read more >
Can original file get corrupted during copying? - Super User
When moving a file, a copy process occurs first, then when the copy is considered to be successful, the original file is deleted....
Read more >
Image upload with JavaScript - File is damaged, corrupted or ...
For sending data between front- and backend I'm using the Axios library, which usually works pretty fine. The Problem: The image looks like...
Read more >
Fix error messages with Uploaded ads - Google Ads Help
When uploading creatives in Google Ads, you may receive an error message. In most situations, the problem can be fixed by altering your...
Read more >
How do you know a file hasn't been corrupted? - Digital Art
Is that feasible? If a file doesn't match the md5, something changed / got corrupted. I'd check the backup copy of the file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found