Navigate to directory of files in shiny - r

I'd like to store multiple html files in a a folder. I'd like to be able to provide a link to the folder so that the user can pick a html file to view.
The issue is that if I try to navigate to the html file I get this message:
The application failed to start.
The application exited during initialization.
Which makes me think that shiny is treating it as an app and looking for a ui.R and server.R file. I read somewhere that I need a www folder but couldn't find any documentation.
How do I go about achieving this?

You can use the following link to understand the architecture
https://vimeo.com/rstudioinc/review/131218530/212d8a5a7a/#t=3m42s
Also for quick references:
This cheat-sheet can be helpful
Cheat-Sheet link

Related

ASP.Net web application cannot read a file within folder

In my asp.net web application, I read the xml file for obtaining a key. If file is not present I show a form to enter the key details and then create the file.
First problem: My app does not recognize the file even if its there.
Second problem: I am running application on the server. When writing, rather overwriting the file, browser shows the username, password prompt before writing the file. If I enter admin credentials it allows to create a file.
I have checked all possible combinations of permissions on the file / folders, but could not resolve the problem.
Any ideas, what I could be missing here?
You read the xml file but is it as a part of your solution? If yes, are you reading it through relative path i.e. are you using Server.MapPath to read it like Server.MapPath("~/Files.test.xml")? Once you use relative path, I don't think it will ask you credentials as it still is in your project directory.
It should work. I am also reading and writing files in my web application.
If it still does not work, please tell me the way you are reading file.
Thanks,

How can i make a custom file explorer with an HTA application?

I want to make a custom file explorer to go through the files and folders like you would with the normal window explorer. I want it to have the same basic function like being able to go folder to folder and back up to the previous folders and be able to open and execute files and such. How can i do this? Can anyone help get me started?
Are you sure HTA still runs? I thought it was killed of by various security enhancements? Assuming a HTA runs Javascript OK, here are some javascript libraries that have interactive file tree functionality:
http://john-smith-js.com/filetree.html
http://dhtmlx.com/docs/products/dhtmlxTree/
Post back if you would like to continue down this path.

How to avoid directory listing

Please help to avoid directory listing while running asp.net application ,(NavigateUrl="<%$ RouteUrl:Routename=Example%>") Folder name is also Example in which the page contains.
Could you please glance over this and also it could be done in IIS->site->"Directory Browsing"

Drupal's JS and CSS optimization error

I started getting errors after I turned on Drupal's performance improvements which pack all the CSS and JS files into single files. The error looks like this:
The selected file /tmp/fileO4fjBF
could not be uploaded, because the
destination
js/js_8a69e612be02242c2866a4a19223bd12.js
is not properly configured.
I'm not sure how I should configure my server for this to work correctly. There is nothing in the documentation about this.
Check you ' Site Configuration > Files' settings or the report. If it is a file permission issue (or maybe a missing folder) it should be apparent from one of those two places.
Often the report or files-settings also supply information on how to remedy the problem.

How do I download an msi file via an asp.net button?

So, I've created my wonderful winforms app that I want to unleash upon the world, and now I am trying to create a simple website to host some basic information and link to the setup file (msi installer file )....
I have a button on the asp.net page and the setup file setupApp.msi in same folder as the asp.net page. I am currently trying the following:
Response.Redirect("http://./SetupApp.msi");
But this best guess at what to do is not working. Is there something wrong with Mime types here? What do I need to put in the click event to allow users to download this file?
The path you are passing in to the method is not valid (there's no server name called ".").
You can pass in a relative path and it should work fine because ASP.NET will resolve the path:
Response.Redirect("SetupApp.msi")
Or if it's not in the same folder, try one of these:
Response.Redirect("../Downloads/SetupApp.msi")
Response.Redirect("~/SomeFolder/SetupApp.msi")
Keep in mind that you don't necessarily have to do the whole redirect at all. Instead of writing code in an ASPX file you could just have a link to your MSI:
Download my app!

Resources