Modified two inappropriate

Modified JSON.parse, ie is not compatible with the following questions

Modify the uploaddir directory path for variables, convenient customization