X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/824d6dae8f19afdea32a2eb0a8ac08f2af202137..e3a612df5e53adb76632fa1e9b32770e83bf8eff:/templates/upload.htm diff --git a/templates/upload.htm b/templates/upload.htm index 0e9d363..494bbb4 100644 --- a/templates/upload.htm +++ b/templates/upload.htm @@ -10,11 +10,11 @@ <h1>Upload a file to {DIR}</h1> -<p><a href="{SCRIPT}?command=show&file={DIR}">Back to {DIR}</a></p> +<p>(equals <a href="{URL}" target="_blank">{URL}</a>)</p> -<p>Using this form, you can upload a file to the current directory ('{DIR}').</p> +<p><a href="{SCRIPT}?command=show&file={DIR_URL}">Back to {DIR}</a></p> -<p><b>Note:</b> Currently, existing files can't be overwritten, so be careful!</p> +<p>Using this form, you can upload a file to the current directory ('{DIR}').</p> <hr> @@ -25,8 +25,13 @@ <p>File to upload:<br> <input type="file" name="uploaded_file" size="35"></p> +<p>Remote name of the file (optional):<br> +<input type="text" name="remote_file" size="35"></p> + <p>Transfer mode (see below):<br> -<input type="radio" name="ascii" value="1">ASCII <input type="radio" name="ascii" value="0" checked>Binary (default)</p> +<input type="radio" name="ascii" id="ascii" value="1"><label for="ascii">ASCII</label> <input type="radio" name="ascii" id="binary" value="0" checked><label for="binary">Binary (default)</label></p> + +<p><input type="checkbox" name="overwrite" id="overwrite"><label for="overwrite">Overwrite existing file</label></p> <p><input type="submit" value="Upload file!"></p> </form> @@ -39,5 +44,15 @@ <li><b>ASCII:</b> Any line separator in the uploaded file will be converted to the system specific line separator. Use this mode for text files, HTML documents, scripts and so on.</li> <li><b>Binary:</b> The file will be uploaded as it is. Use this transfer mode for images, executable files and archives, for example. This is the default transfer mode.</li> </ul> + +<p><b>Note:</b></p> + +<ul> +<li>If you specify an other remote name for the uploaded file, all slashes and backslashes will be removed from the entered value.</li> +</ul> + +<hr> + +<p align="right"><a href="{SCRIPT}?command=about" target="_blank"><i>About Dev-Editor</i></a></p> </body> </html> \ No newline at end of file