开发者

Access local files from directory outside SmartGWT deployment?

开发者 https://www.devze.com 2023-04-05 13:10 出处:网络
I have a problem. I\'m creating an app with SmartGWT that just I am going to use. I currently have a dir开发者_JAVA技巧ectory with thousands of directories corresponding to a user name and then each d

I have a problem. I'm creating an app with SmartGWT that just I am going to use. I currently have a dir开发者_JAVA技巧ectory with thousands of directories corresponding to a user name and then each directory has numerous images. This is on the root of my D drive.

How can I get SmartGWT to access this? I've tried something like the TileGrid example on the showcase, but it doesn't let me specify an absolute location. Is this even possible?

I'd like to avoid having to write some kind of service to access these files.


SmartGWT is not meant to create local applications, not to mention that browsers will balk at accessing directory lists of local files. the best you can hope is to create a symlink to the folder, placed in a location within the app directory. And don't even think about enumerating files from within javascript.

0

精彩评论

暂无评论...
验证码 换一张
取 消