Hello,
please can anybody help me - i searched for days not finding anything giving me a hint for a solution.
Situation:
My boss extracts html files from a old-school planning program used at our school daily und uploads them directly via ftp to our site. The files have always the same names and are just updated daily. I guess I can't change that behaviour.
I had to find a way to display them directly only to authenticated users, so i couldn't link to them directly from drupal.
I made a content type including a field for file upload and uploaded the html files via drupal while creating one node of this content type. I used iframe tags in the text area of the content type (object tags works as well) to really show the html files and not only display a link to them. Everything works fine for the first time.
And here is the problem: If my boss uploads new versions of the html files the next day, he uses - as described above - only ftp and not the drupal upload function. These files are not displayed correctly (e.g. some words are missing or the rest of the http-protocol message is visible, like
HTTP/1.1 200 OK Date: Sun, 17 Feb 2013 21:24:49 GMT Server: Apache Expires: Sun, 19 Nov 1978 05:00:00 GMT Last-Modified: Sun, 17 Feb 2013 21:24:49 +0000 C
i think this is because:
- the new files are slightly larger or smaller (this varies from day to day)