miércoles, febrero 28, 2018

How to download a file with Anti-virus warning on Gmail [updated April 2017]

De: http://www.barfuhok.com/how-to-download-a-file-with-anti-virus-warning-on-gmail/

Yesterday, I was searching in my Gmail for old files that I wanted to download. Once the email opened, I had a particular surprise: Anti-virus warning – 2 attachments contain a virus or blocked file. Downloading these attachments is disabled.

gmail-anti-virus-warning

Why do we have this anti-virus warning?

Like I said, this error was kind of surprising since I know for sure those files don’t contain viruses. After reading the Learn more link, I realized that those files were marked as a virus because they contained another .zip file in it. According to this link again, it is also possible to have a file blocked if it figures in the list of the Gmail blocked file type (for example a .bat file). You can take a look to the banned files type list here.

I think this is good that an anti-virus has been implemented into Gmail, but it should let the user choose if they want to be able to download their files anyway. They should only put a warning and let the download happens if this is what the user want. Since this is not the case, we need to think outside of the box to be able to download those files!

How to download the blocked files anyway

Available solutions:
1- Save email and open it in Outlook or any other email client (new solution, working)

Method 1: Save email and open it in Outlook

1- Click on the “More” arrow at the top right of the email and click on “Show original”.

gmail-down-blocked-files-outlook-1

2- Click on “Download original” at the bottom left.

gmail-down-blocked-files-outlook-2

3- Save the file as “email.eml“. The file extension needs to be .eml.

4- Open the file with outlook, or any other email client. You will now be able to download your files.

gmail-down-blocked-files-outlook-3

UPDATE: I will include Sara’s comment here, since it seems to have helped many people.
I tried this and it worked ;). Just open the email on gmail app. Here you can download the files without restrictions, then just send the files from your phone to your PC using USB conection or another message app which allows to attatch documents (like whatsapp or telegram). Hope it helps!

domingo, febrero 18, 2018

odrive–unlimited file size

DIY

Considering the fact that we are creating a brand new system to facilitate unlimited file sizes and universal upload resume capabilities, it is important to us that this system be completely transparent, and independent of odrive. To demonstrate this, we created some simple shell scripts that anyone can use to re-assemble the raw odrive IFS file packages.

Powershell:

#Run inside the parent of the downloaded .xlarge directory
$xl_dir_name = "[name of xlarge directory]"
$xl_name = $xl_dir_name.Substring(0,$xl_dir_name.Length-40)
$meta_path = "$xl_dir_name\.meta"
$segments = Select-String -pattern "CLOUD-XL-SEGMENTS" $meta_path -List
$num_segments = $segments.line.split(":")[1]
echo "Assembling $xl_name...."
rm "$xl_name" -erroraction 'silentlycontinue'
ni "$xl_name" -type file | Out-Null
for ($i=0; $i -lt $num_segments; $i++) {
$cur_seg = Select-String -pattern "CLOUD-XL-SEGMENT:$i" $meta_path -context 0,2 -List
$filename = $cur_seg.context.DisplayPostContext[1].split(":")[1]
echo "adding segment: $filename to $xl_name"
$copy_output = $(cmd /q /c copy /b "$xl_name" + "$xl_dir_name\$filename" "$xl_name")
}

Bash:

#Run inside the parent of the downloaded .xlarge directory
xl_dir_name="[name of xlarge directory]"
xl_name="${xl_dir_name::${#xl_dir_name}-40}"
meta_path="$xl_dir_name/.meta"
num_seg_str=$(grep "CLOUD-XL-SEGMENTS:" $meta_path)
num_seg_str_split=(${num_seg_str//:/ })
num_segs=${num_seg_str_split[1]}
for (( i=0; i<$num_segs; i++)) do
cur_seg_str=$(grep -A 2 "CLOUD-XL-SEGMENT:$i" $meta_path | grep "CLOUD-XL-SEGMENT-HASH")
cur_seg_str_split=(${cur_seg_str//:/ })
filename=${cur_seg_str_split[1]}
echo "adding $xl_dir_name/$filename to $xl_name"
cat "$xl_dir_name/$filename" >> "$xl_name"
done