Small issue with cloud service on Firefox

I’m currently trying the Adrive service as trial period. Wonder if anyone else has tried it as well…

Thing is, I tried creating just a text file named plain “Atest” with some random gibberish as text, but through vim, though gedit can read it anyways.
I uploaded it to the Adrive account, logged in the web interface using Firefox and tried the option “preview in new tab”. Tab attempted to open, closed immediately and I was asked if I wanted to save the file, as in downloading it. It marked it as a “BIN” file. Although the file was totally mine, I hit cancel button. Perhaps Adrive cannot preview other files than txt in its web interface.

But what worries me is, is it kind of an expected behavior from Firefox, or openSUSE globally itself? Didn’t I put at harm risk my system? Don’t know if similar thing happens with Dropbox or Google drive web interfaces…

Thanks again, and sorry if stupid…

Your file is probably named Atest and not something like Atest.txt.

A lot of applications rely on the file extension to decide how to handle the file.
A file without a file extension probably defaults to being handled as an executable which cannot be “previewed” so prompts you to download the file.

TSU

I agree. Why would your cloud storage be interested in what is in the file. It is just bytes. You store them somewhere , using a name to remember what is what, and then retrieve it using that name. Nothing in the contents should be changed. If you, the user, using any application, then assumes that the contents is text of some form (ASCII, Unicode, EBCDIC, whatever), that is fine.

Yes, as I mentioned, I used the web interface on Firefox, and I realized I should have named Atest.txt when creating it with vim editor…
Still, then no harm to the file or entire Leap OS at all? Was it kind of an “expected” behavior?

Why? You can name any file to your liking.
It is the stupid cloud software that draws conclusions (wrongly). It should not try to interprete file names. Maybe that is a Windows habit (the whole term “file name extension” is an MS-DOS invention), but as Linux user, you should not be impressed by this.

Again why? it is your file. the same one you created. Byte for byte. Nothing changed. You put it in some storage. In this case on somewhere in the cloud, but it is the same as when you stored it on your own system. Nothing changed.
Expected? You can expect anything stupid from software that tries to be MS Windows friendly.