uploading files via /staticfiles creates corrupted/altered copies instead
See original GitHub issueDescribe 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:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mertkahyaoglu were you able to reproduce this on your local windows machine? Just confirming if its not something due to my local system configuration.
I suspect this may be a windows line ending issue.