Skip to content

Conversation

@oleg-khymchenko-kh
Copy link
Contributor

This modification will automatically create subfolder(s) if you try to upload a file to a non-existing folder.
For example, you run the following script and 'folder1' does not exist:
$.ajax({
url: 'http://127.0.0.1:8887/folder1/folder2/test2.txt',
type: 'PUT',
data: "My file Content"
});

After this HTTP request is processed 'folder1' and 'folder2' will be created (folder2 will be a subfolder of folder1).

@kzahel kzahel merged commit 7034bff into kzahel:master Jan 21, 2018
@kzahel
Copy link
Owner

kzahel commented Jan 21, 2018

Cool. What do you use it for?
Itll go out with the next release

@oleg-khymchenko-kh
Copy link
Contributor Author

I’m creating a small chrome extension that injects a piece of Javascript to a page on an external web site.
That Javascript collects some data from the page and saves the data to local disk. I use ‘web-server-chrome’ for saving data to local drive. This is just for personal needs. It is something just for fun, not for business.

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