Get Complete Filepath - Forum

Forum Navigation
You need to log in to create posts and topics.

Get Complete Filepath

I'm using neoFileSytem neoFileOpenBox to open a local image file... I can get the filename of the image using the neoFileName function.

How can I get the full file path of the image into a variable?

Thanks in advance.

 

@anthony-latorre due to the web browser security restrictions I think that's not possible. What you get is a file handler instead:
https://stackoverflow.com/questions/69236490/how-do-you-get-the-selected-directory-path-from-file-system-access-api-window-sh

Regards.

Anthony LaTorre has reacted to this post.
Anthony LaTorre

Thanks Luis, I suspected that might be the problem...

So how do you open/save a file? Can I have some example?
I'm trying to run the neoFolderBox command in the Run program (from the beginning of the project). There is one button on the form in which the neoFolderBox command is written. A window opens and an error occurs in the debugger.
';' is expected ';' (main.js?v=16, 24)
and many more lines. The button does not appear in the window.

I write in the button
neoFolderBox "[n]"
I run it in the Microsoft Edge browser. The button is not displayed. I press f12. log

main.js:16 Uncaught SyntaxError: Unexpected token '['
jquery.min.js:2 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.8.2/$injector/modulerr?p0=NeoApp&p1=Error%3A%20%5B%24injector%3Anomod%5D%20http%3A%2F%2Ferrors.angularjs.org%2F1.8.2%2F%24injector%2Fnomod%3Fp0%3DNeoApp%0A%20%20%20%20at%20file%3A%2F%2F%2FC%3A%2FUsers%2FMishem%2FDocuments%2FVisualNeoWeb%2FLibraries%2Fjs%2Fangular.min.js%3A7%3A168%0A%20%20%20%20at%20file%3A%2F%2F%2FC%3A%2FUsers%2FMishem%2FDocuments%2FVisualNeoWeb%2FLibraries%2Fjs%2Fangular.min.js%3A26%3A503%0A%20%20%20%20at%20b%20(file%3A%2F%2F%2FC%3A%2FUsers%2FMishem%2FDocuments%2FVisualNeoWeb%2FLibraries%2Fjs%2Fangular.min.js%3A26%3A25)%0A%20%20%20%20at%20file%3A%2F%2F%2FC%3A%2FUsers%2FMishem%2FDocuments%2FVisualNeoWeb%2FLibraries%2Fjs%2Fangular.min.js%3A26%3A277%0A%20%20%20%20at%20file%3A%2F%2F%2FC%3A%2FUsers%2FMishem%2FDocuments%2FVisualNeoWeb%2FLibraries%2Fjs%2Fangular.min.js%3A43%3A201%0A%20%20%20%20at%20r%20(file%3A%2F%2F%2FC%3A%2FUsers%2FMishem%2FDocuments%2FVisualNeoWeb%2FLibraries%2Fjs%2Fangular.min.js%3A8%3A76)%0A%20%20%20%20at%20g%20(file%3A%2F%2F%2FC%3A%2FUsers%2FMishem%2FDocuments%2FVisualNeoWeb%2FLibraries%2Fjs%2Fangular.min.js%3A43%3A49)%0A%20%20%20%20at%20fb%20(file%3A%2F%2F%2FC%3A%2FUsers%2FMishem%2FDocuments%2FVisualNeoWeb%2FLibraries%2Fjs%2Fangular.min.js%3A47%3A153)%0A%20%20%20%20at%20c%20(file%3A%2F%2F%2FC%3A%2FUsers%2FMishem%2FDocuments%2FVisualNeoWeb%2FLibraries%2Fjs%2Fangular.min.js%3A22%3A57)%0A%20%20%20%20at%20Wc%20(file%3A%2F%2F%2FC%3A%2FUsers%2FMishem%2FDocuments%2FVisualNeoWeb%2FLibraries%2Fjs%2Fangular.min.js%3A22%3A370)
at angular.js:99:1
at angular.js:5127:15
at r (angular.js:388:11)
at g (angular.js:5087:5)
at fb (angular.js:5004:19)
at c (angular.js:1963:20)
at Wc (angular.js:1984:12)
at Ee (angular.js:1869:5)
at HTMLDocument.<anonymous> (angular.js:36595:5)
at e (jquery.min.js:2:30038)

I write in the button
neoFolderBox ""
I run it in the Microsoft Edge browser. The button is displayed. I press the button. I choose a folder. I press f12. log

neoapp-debugger.min.js:1 PushButton1 > click
neoapp-debugger.min.js:1 neoFolderBox ""
main.js?v=18:24  Uncaught (in promise) TypeError: callBackFunction is not a function
    at neoFolderBox (main.js?v=18:24:791)
neoFolderBox @ main.js?v=18:24
await in neoFolderBox (асинхронно)
$scope.PushButton1_click @ main.js?v=18:16
fn @ VM19:4
e @ angular.js:29123
$eval @ angular.js:19523
$apply @ angular.js:19622
(анонимный) @ angular.js:29127
dispatch @ jquery.min.js:2
v.handle @ jquery.min.js:2

How can I get a way to work with it further? File save, open, upload, etc.

For example task:
To make a photo. Save photo. Open photo. Convert photo to PDF file. Save this file.
This can be done? Or is it not even worth trying?

@mishem please take a look at "My Documents\VisualNeoWeb\Sample Apps\neoFileSystem" folder.
There is a complete sample app there showing how to use local files with FileSystem API (Chrome and Edge only)

Yes, thanks, I already found it. I understand. I didn't think to look there.