NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: MikeR on November 05, 2015, 08:32:30 AM

Title: Media type in a form
Post by: MikeR on November 05, 2015, 08:32:30 AM
I have a media type in a netwebform on the second tab
on the first tab I create a pdf and refresh the media entry
all works perfectly well
If I go out and come in again everything is cool.

However
if I recreate the pdf on the first tab and move to the media tab the old pdf displays.
if I look in the web sub folder where the pdf was created the new pdf is there.
if I go out the form and return the old pdf is still displayed

I have checked the settings on the performance tab of the webserver and all is set to 0 not to hold anything in cache.

How do I ensure that the webserver retrieves the new file from the server and sends it to the browser.
even if I close the webserver program and rerun it the old pdf displays in the browser.


A second question.
How do I ensure that nobody can display the stored files i've stored on the webserver under the web sub directory by just entering the server address followed by the file name ?
Title: Re: Media type in a form
Post by: Bruce on November 06, 2015, 12:17:13 AM
Post the second question in a separate thread. And apply more context.
the short answer is, if you don't want the files to be served, move them out of the web folder. But I suspect you want them to be served "some of the time". So more context is necessary.

cheers
Bruce
Title: Re: Media type in a form
Post by: Bruce on November 06, 2015, 12:18:00 AM
Regarding the first question - post an example app and instructions to duplicate the effect you are seeing. It's impossible to answer it usefully with just that description.

cheers
Bruce