File format Error after Download - Jekyll blog - file

I would like users to download a zip file and I have the following code.
<a href="directory/fileName.zip" download>DOWNLOAD</a>
However, when I test it out, the file downloads instantly and when I try to open it, I get the unsupported format error. On localhost, it downloads instantly but the zip file successfully opens.
I am on MacOS and have git lfs installed if that is important. Any help would be greatly appreciated. Thank you.
I tried renaming the file so that there are no spaces in its name, tried to separately compress the directory to be zipped.

Related

The file is not displayed in the editor because it is either binary or uses an unsupported text encoding

Is it related or not I don't know but when I install firebase and open VS Code again, this problem appeared in package.json and package-lock.json when click to 'Open anyway' button Text-Editor this nulnulnul issue come up
nul problem:
When I open package.json file with Hex Editor shown like this
with hex editor:
Edit:
I deleted package.json files and install all packages again and it works
just extract the files before you even open the zipped files in the vs code
Had similar experience and these are the steps I took.
If you've push the project to github or any source control system, copy the package.json file in the repo, delete the corrupted package.json file in the project folder, then paste the copied package.json file on your project folder.
I went through this problem
The cause of the problem was that I had the files in extension Example.rar
Then instead of extracting the files by decompressing them
I dragged it through a program window through
instead of extracting it naturally
I was using a system at the time ubuntu And I want to access the files through a program "vs code"
The program I was using is called "Archive Manager"
The Archive Manager in Ubuntu is a utility program that allows users to manage compressed archives, such as ZIP, TAR, RAR, GZIP, and BZIP
Solve the problem if you go through the same experience as me
Unzip the files normally
Then try to make sure the files are working

Download a public file in Bitrise Workflow

I have my zip uploaded on Gofile, and using the direct download link I'm trying to use CURL in my step to download it on my build.
Even if the step work, the file is not totally donwloaded as I can't unzip it..
+ curl https://srv-store3.gofile.io/download/RIDfRD/xxxx.zip -o xxxx.zip
here is the command I used
I have no idea why this don't download. I also tried the "official" download step
Are you receiving the following error when trying to unzip it?
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
This means the zip file is corrupted. I was able to reproduce it with my own file. Go file is intended to be downloaded from the website not through curl.
I would recommend using a different service like https://gist.github.com and copying the raw file link and using that in the curl command.

How to archive new build files in jenkins -pipeline script in groovy ReactJS

trying to archive all the files into a zip file that is formed in the workspace in jenkins pipeline script. I tried using this
archiveArtifacts 'C:\Program Files (x86)\Jenkins\jobs\pipeline CI_MS\workspace'
but error was shown as "file not found"
Thanks for any help
Do you really want to archive everything in the entire workspace? Hardcoding the path like that is a bad idea. The workspace moves, and if you are using a more recent version of Jenkins (that wasn't upgraded from an old version), you are probably not even looking in the right space.
Use this:
archiveArtifacts "${WORKSPACE}"
Add to the end of the path if you want to archive files in subdirectories.

Nunit TestResult.xml is not created during Jenkins build

To run tests in Jenkins I use the next batch command:
"C:\Program Files (x86)\NUnit 2.6.4\bin\nunit-console.exe" /result:TestResult.xml "C:\Users\Denis\Documents\Visual Studio 2013\Projects\MyProject\App.nunit"
Here how it looks in Jenkis:
The problem is: it doesn't generate TestResult.xml file!
When I run the same command as a .bat file from my desctop it creates the TestResult.xml file.
Any ideas what is wrong with Jenkins?
P.S. I searched for created file in all possible folders and even via "search"
I came up with thought that the file is generated and removed then or something like this.
The thing is that I don't see this file indeed but Jenkins generated report based on this file! So I think maybe after generating report the file was removed automatically.
I had faced the same issue and I found the test results xml file under my user directory in Win 7.
Note : I think it's some problem with nunit that it doesn't export the file to the location of which we provide the path.

a wierd 'File' in web app directory failing WAR

This may sound like a wierd question, but I am having this issue with a file (0 bytes in size) with a name like mymap.register.User of type "File" , in Windows 7 HomePremium.
When I try to delete this file it says cannot find the file, I cannot do any operation on this file basically (open, edit, delete, rename etc).
this file is located in my grails project in web-app/js directory, so when I try to build the WAR it fails saying cannot find this file. I am really stuck with this 'pseudo' file which is not clearing up from my system.
Thanks
Priyank

Resources