Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to do change the uploading path #33

Open
yang1289 opened this issue Aug 17, 2016 · 5 comments
Open

how to do change the uploading path #33

yang1289 opened this issue Aug 17, 2016 · 5 comments

Comments

@yang1289
Copy link

I want to use costem path ,but i don't know how do that .can you tell me ?

@louiscuti
Copy link

view urlUpload

@yang1289
Copy link
Author

ok.thank you.but i want to know the server code how costem the save path.I want to know the change save path.

@bluejoe2008
Copy link
Owner

this is decided by how you mount a volume
if you mount folder /tmp/a as volume A (shown as the example xml file)
then uploaded files will stored in /tmp/a

@louiscuti
Copy link

ConnectorServlet.java
line 61, createFsService()
fsService.addVolume("A", createLocalFsVolume("departShare",new File("share")));
"share" is save path.
"departShare" is used to display in tree
you could set save path like ---> servletContext.getRealPath("share")
是国人么?中文交流不是更好,英文又烂又累

@yang1289
Copy link
Author

如果我动态添加地址,在别人登陆浏览他上传的图片的话就会出现显示不出来。像是图片地址的问题,因为好像在图片地址处理上有些问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants