Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: IWApplication.Create(?)



Permlink Replies: 1 - Last Post: Jan 11, 2016 10:01 PM Last Post By: Alexandre Machado
Didier Menant

Posts: 2
Registered: 8/7/11
IWApplication.Create(?)
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 8, 2016 6:46 AM
Hello,
In Intraweb 14, I want to protect an directory of files (the files are PDF) when the users session doesn't open.
I use this TIWMimeTypes.RegisterType('.pdf', 'application/pdf', true)

If a people can help me.

Best regards
Alexandre Machado

Posts: 1,754
Registered: 8/10/13
Re: IWApplication.Create(?)
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 11, 2016 10:01 PM   in response to: Didier Menant in response to: Didier Menant
Didier Menant wrote:
Hello,
In Intraweb 14, I want to protect an directory of files (the files are PDF) when the users session doesn't open.
I use this TIWMimeTypes.RegisterType('.pdf', 'application/pdf', true)

If a people can help me.

Best regards

Hi Didier,

you need to give me a few more details. How these files are going to be transmitted? Will you use SendFile() and/or SendStream()?
By default, any file below wwwroot can be accessed by any user, as long as the user knows the exact path of the file, including the full file name. Anything outside wwwroot folder must be sent to the user explicitly.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02