NetTalk Central

Author Topic: Media type in a form  (Read 3404 times)

MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
Media type in a form
« 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 ?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Media type in a form
« Reply #1 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Media type in a form
« Reply #2 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