'Assigning name to a org.springframework.core.io.Resource object

I am looking for a way to assign/set a filename to a org.springframework.core.io.Resource object. The object does not have a function available to do this. The getFileName method in my case returns a null.

I do not want to create a multipartfile from the Resource object since my Open API spec does not accept it.



Solution 1:[1]

header of get url is missing fileName after adding header like this will solve this issue

 s3Object.getObjectMetadata().setHeader("fileName","page-1-tables.csv");

Solution 2:[2]

That is because the page direction is LTR (Left To Right), and even if the page direction changed to RTL (Right To Left) Then: "margin-left" wont work anymore but "margin-right" will work!!

The easiest solution is to change the "margin-right" to "margin-left", and reverse the direction by adding a minus (-) so the movement will be done in the reversed direction of "left" which is "right".

Final code of the "hello" Animation:

@keyframes hello {
    from {
        margin-left: -10px;
    }
    to {
        margin-left: -1000px;
    }
}

Also I have noticed that you wrote > ` < before "margin-left" on the from section of "hola" animation don't forget to remove it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mirza
Solution 2 Sultan Shindi