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

can not upload file #104

Open
allenfoxtc opened this issue Nov 3, 2019 · 1 comment
Open

can not upload file #104

allenfoxtc opened this issue Nov 3, 2019 · 1 comment

Comments

@allenfoxtc
Copy link
Contributor

log:
upload method: POST
open /home/userdata/workspace-723ceb50-9552-457a-8c39-255f1cd02947/userdata/sheet.txt: no such file or directory

i think the folder name is mismatch

manager.go use userfolder:

os.MkdirAll(dirName+"/userfolder", 0777)

but upload server use userdata:

f, err := os.OpenFile(*rootDirectory+"userdata/"+handler.Filename, os.O_WRONLY|os.O_CREATE, 0666)

and os.O_CREATE can not create parent folder.

@neulf
Copy link

neulf commented Jan 2, 2020

yes, me too.

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

2 participants