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

subdirectories upload #10

Open
wants to merge 5 commits into
base: upload-support
Choose a base branch
from
Open

Conversation

rhsCZ
Copy link

@rhsCZ rhsCZ commented Jun 21, 2020

I found a way to upload to subdirectories. place in filename "%2f"(without quotes, should be replaced in code for anything, maybe single % should work if code will be modified) and this will be replaced to "/" which makes upload to subdirectory for example "cfg%2ftest.cfg" uploads correctly to subdirectory cfg with name test.cfg. should create subdirectories and it should work for multiple subdirectories(not fully tested).
upload

rhsCZ added 2 commits June 21, 2020 04:56
…thout quotes, should be replaced in code for anything, maybe single % should work if code will be modified) and this will be replaced to "/" which makes upload to subdirectory for example "cfg%2ftest.cfg" uploads correctly to subdirectory cfg with name test.cfg. should create subdirectories and it should work for multiple subdirectories(not fully tested).
@rhsCZ rhsCZ mentioned this pull request Jul 6, 2020
@GMMan
Copy link
Owner

GMMan commented Jul 7, 2020

This looks oddly hacky. Why not implement some sort of addition to the open file dialog box that allows the upload directory to be specified? Personally I'd use IFileOpenDialog from the Windows Shell API, but it's a lot of finicky interop stuff, so maybe a better idea is a SplitButton with selection for default upload that just opens up the regular open file box, and another option that opens up a form that lets you pick the destination. This could be combined with something for full directory uploads too.

@rhsCZ
Copy link
Author

rhsCZ commented Jul 7, 2020

I made change to use form to choose folder by type it in textbox(my form doesn't look nice, but works :D). Maybe default upload button should be fine if someone doesnt upload to specific folder(this form will pop up for each selected file, which can be really annoying).

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.

2 participants