Issues with download in Reactive
Discussion

Hello,

Has anyone had issues with downloading files in Reactive? I'm using the download action, providing the binary and the file name.


In 80% of the downloads I get a file with a guid as filename and without extension. In the remaining 20% cases it works fine (for the same file).



I've tested this in the most popular browsers, with multiple file names, with and without extension and multiple file sizes, and the behavior is always the same.


mvp_badge
MVP

I will ask around at OutSystems.

mvp_badge
MVP

Hi David,

Is there any pattern with regards to when you get the GUID and when the actual file name? If you get a file name, do you always get a file name for that file, or is it random even if you download the same file?

And perhaps a stupid question, but did you debug and check whether FileName actually contains the expected file name, even when getting a GUID? I can imagine a GUID is generated when the FileName is empty, for example.

Champion

Hey,

So far I didn't find any pattern, it appears to be random. The guid is the blob id generated in the JS code that handles the download of the file.

When I get the file name everything is correct and as expected.

And yes, the file name always contains the expected file name. In my sandbox I even hardcoded the file name.

I've heard that the React 16 preview may solve the problem, which is something I'll test tomorrow.

Still, I'd expect the download to work even without the React 16 preview.

Cheers

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.