Page 1 of 1

Custom HTML Page Uploads as Zero k File

Posted: Sun 09 Feb 2014 5:57 am
by BC12D
Hi all,

New user of Cumulus here...have used FreeWx for years on my Radio Shack WX-200 (WMR-900) but I really like Cumulus so far.

Problem: I created a custom HTML page for FTP upload using the tags supplied. When the file is processed and uploaded to my web server, the resulting HTML file is "0k" in size. The regular Cumulus HTML pages and images process and upload fine, its just the custom file that is empty.

I verified the tag symbols are true "<" and ">" and stripped the HTML code down to the bare minimum looking for something that might be tripping up the processing. I feel like this is something simple but I can't find a fix.

Thanks for any help out there.

Re: Custom HTML Page Uploads as Zero k File

Posted: Sun 09 Feb 2014 11:32 am
by steve
If you zip up your template file and attach it, I'll take a look. Is the 'tmp' file on your PC that Cumulus creates for upload also zero bytes?

Re: Custom HTML Page Uploads as Zero k File

Posted: Sun 09 Feb 2014 3:28 pm
by BC12D
The HTML file (zipped) is attached. Thank for taking a look!

I am not using the rename method so there is no .tmp file right now.

Re: Custom HTML Page Uploads as Zero k File

Posted: Sun 09 Feb 2014 3:31 pm
by steve
BC12D wrote:I am not using the rename method so there is no .tmp file right now.
There should be, on the PC, so that your template file doesn't get overwritten. The 'rename' option creates 'tmp' files on the FTP server.

If there's no tmp file on the PC, that's why you have a zero-length file on the server. I'll take a look at your template.

Re: Custom HTML Page Uploads as Zero k File

Posted: Sun 09 Feb 2014 3:39 pm
by steve
The problem is that the line endings are just CR rather than standard Windows CRLF, so the parser sees the file as one long line, and it can't cope with a line that long.

Re: Custom HTML Page Uploads as Zero k File

Posted: Sun 09 Feb 2014 11:46 pm
by BC12D
steve wrote:The problem is that the line endings are just CR rather than standard Windows CRLF, so the parser sees the file as one long line, and it can't cope with a line that long.
Steve, you were correct. I wrote the code in an HTML editor on a Mac but never checked it on the XP box. When I opened it in Notepad, I saw exactly what you saw. I pasted the code (on my Mac) into BBEdit and saved it with CRLF line breaks and all is well now.

Thanks very much!

Pat