Skip to content

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

Open
yuyichao wants to merge 1 commit into
haiwen:masterfrom
yuyichao:upload_parent
Open

Allow upload link to work for subdirectory of upload folder.#321
yuyichao wants to merge 1 commit into
haiwen:masterfrom
yuyichao:upload_parent

Conversation

@yuyichao

@yuyichao yuyichao commented Feb 14, 2020

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Author

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

@yuyichao

Copy link
Copy Markdown
Author

Ping

@yuyichao

Copy link
Copy Markdown
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