Can we get file information such as filesize, path of a file(even a large one) without actually uploading it onto the server using scala? PS. I know it can be done using Javascript, but I am searching for another way.
-
1Possible duplicate of getting file size in javascriptIgor Litvinovich– Igor Litvinovich2019-01-10 13:42:43 +00:00Commented Jan 10, 2019 at 13:42
-
1Can you help us by explaining how you will identify the file that you are interested in? Do you have a URL, or some other identifier?Tim– Tim2019-01-10 14:05:56 +00:00Commented Jan 10, 2019 at 14:05
-
You definitely need to specify in what context you expect the code to be executed and where the file is located. If it is in the browser, it has to be JavaScript although you can use Scala.JS to cross-compile Scala into JS.SergGr– SergGr2019-01-10 16:24:44 +00:00Commented Jan 10, 2019 at 16:24
Add a comment
|