Tell me more ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

When you download a file from the MEGA service, you are shown a pretty download progress bar within the browser. Once this progress bar reaches 100%, your browser then begins to download the file. That is, only once the graphical download is complete, your browser's normal download process is started. What exactly is going on here?

share|improve this question

2 Answers

up vote 6 down vote accepted

It uses the fileSystem api: http://developer.chrome.com/apps/fileSystem.html

Which basically writes the file to a sandboxed section of your local file system:

AppData\Local\Google\Chrome\User Data\Default\File System\

share|improve this answer
Ah interesting. So the graphical download creates the file in the directory mentioned in your answer. The start of the browser download is the movement from that directory to your download destination folder. Is that right? What are the benefits to this? – Jeff Mar 4 at 20:03
1  
Yes, exactly... Well, it seems to copy, not move the file. As for the benefits, i'm struggling to see any! "Resumable" downloads is one, but not being able to choose your download folder isn't ideal. I'm also struggling to find out how long the file is stored in your User Data folder, as i downloaded something from mega about 3 days ago and the 250mb file is still there. – Dodswm Mar 5 at 19:41

All the downloads on MEGA are encrypted using a private key that only you have. When you choose to share a file, you have to give them the key, or you have an option to include it in your download link url. The download must be decrypted using this key before it can actually be downloaded. This is what is most likely happening during this time. Larger files may take longer to decrypt.

share|improve this answer
Where is the data stored though? It doesn't let you save it anywhere until it's downloaded and decrypted, so it's obviously storing it somewhere temporarily during that time. – Sean Gordon Mar 3 at 11:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.