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

Allow upload link to work for subdirectory of upload folder. #321

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yuyichao
Copy link

@yuyichao yuyichao commented Feb 14, 2020

Currently the behavior is such that the directory specified in the
two requests have to match, which makes the argument for the second
request completely useless. If this were to be the desired behavior
then the parent_dir parameter should just be ignored from the second
request completely. Alternatively, this commit allows upload to a subdirectory
of the p parameter from the first request again.
This matches the old behavior better without allowing uploading to
an arbitrary directory.

If the current behavior is also desired for some use cases,
it should be added as new request or
with a new parameter on the first request.

Fix regression from #286.

Fix haiwen/seahub#4441

Currently the behavior is such that the directory specified in the
two requests have to match, which makes the argument for the second
request completely useless. If this were to be the desired behavior
then the `parent_dir` parameter should just be ignored from the second
request completely. Alternatively, this commit allows upload to a subdirectory
of the `p` parameter from the first request again.
This matches the old behavior better without allowing uploading to
an arbitrary directory.

If the current behavior is also desired for some use cases,
it should be added as new request or
with a new parameter on the first request.

Fix regression from haiwen#286.

Fix haiwen/seahub#4441
@yuyichao
Copy link
Author

Test failure is expect from the change in the API handling. I can try to fix the test once a decision on what to do with this is made.

@yuyichao
Copy link
Author

Also ref haiwen/seafile-client#1274 for the comment I left about ...

@yuyichao
Copy link
Author

Ping

@yuyichao
Copy link
Author

No reply after a month so @feiniks @killing .

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

Successfully merging this pull request may close these issues.

Change in upload link handling.
1 participant