Create gives error
tyeeman opened this issue · 3 comments
When I add ?create I get an error of "Sorry, there's a conflict". Do you know why?
This is from the log -
?create: file to be created already exists: %!s(<nil>)
So I guess that the file doesn't exist actually? Can you give a bit more information about the exact request URL and the file system state (i.e., whether files and directories exist)?
I start with a markdown file called index.md. I go to http://localhost:8080 and I get the index page just fine. I then use this url to create a new page - localhost:8080/?create, then I get the error. Am I supposed to specify a filename to create or does it ask me for a filename?
Update - OK, silly me, I tried this url - localhost:8080/newfile.md?create - and it worked. I suggest adding an example like this in the readme file.
Something else is strange. I go to edit my index file using this url - localhost:8080?edit - and I get taken to a google search. If I use this url - localhost:8080/?edit - it works.
Glad everything works for you! I'll leave this ticket open to improve the README.md
.
As for the Google search, that has nothing to do with gone, but is a function of your browser. I suggest to always prepend the protocol -- http://
probably -- which makes clear to your browser that you're trying to open a website.