New topic: Working with file
<http://forums.realsoftware.com/viewtopic.php?t=35287> Page 1 of 1 [ 14 posts ] Previous topic | Next topic Author Message face Post subject: Working with filePosted: Fri Sep 03, 2010 9:08 pm Joined: Tue Nov 14, 2006 5:25 pm Posts: 488 Hi all, How Real Studio Web manages with file? I need to view/open/modify files in a folder saved on a web (or on a local pc). Is it possible to view a list of those file and simply open with a simple click, executing them with the associated app on pc (word, excel, etc.)? If the files are saved on web i need to download first on pc? If instead the file are on pc they should open simply clicking on them, is it true? Top Thom McGrath Post subject: Re: Working with filePosted: Fri Sep 03, 2010 9:40 pm Site Admin Joined: Tue May 06, 2008 1:07 pm Posts: 1425 Location: NotEvenOnTheMap, CT Web applications have absolutely zero access to files on the user's computer. You can present a file to be downloaded, but what happens next is and must be completely user-controlled. Similarly, a user can upload files to your app, but your app cannot request them. These are security measures of the browsers, not of our own design. _________________ Thom McGrath - @tekcor Web Framework Architect, Real Software, Inc. Top face Post subject: Re: Working with filePosted: Fri Sep 03, 2010 9:55 pm Joined: Tue Nov 14, 2006 5:25 pm Posts: 488 I'm a bit confused about that. Office web app, google docs aren't web app? They allowed users to view/edit files. What i'm missing? Top Thom McGrath Post subject: Re: Working with filePosted: Fri Sep 03, 2010 10:00 pm Site Admin Joined: Tue May 06, 2008 1:07 pm Posts: 1425 Location: NotEvenOnTheMap, CT No, they can't. Google Apps allows you to select a file from your hard drive and upload it to their app. Same with every other file transaction with the web. _________________ Thom McGrath - @tekcor Web Framework Architect, Real Software, Inc. Top face Post subject: Re: Working with filePosted: Fri Sep 03, 2010 10:17 pm Joined: Tue Nov 14, 2006 5:25 pm Posts: 488 Dont't take me wrong. http://office.microsoft.com/en-us/web-apps/ The office web app does not work as i ask in my first post? Top Thom McGrath Post subject: Re: Working with filePosted: Fri Sep 03, 2010 10:27 pm Site Admin Joined: Tue May 06, 2008 1:07 pm Posts: 1425 Location: NotEvenOnTheMap, CT Microsoft is the type of company to use an ActiveX control or something, that would allow them to do something special. I don't know, I have never used Office on the web. I can tell you with 100% certainty web pages cannot, under any circumstances, ever access files on the user's computer. That would be a huge security risk. Imagine visiting a web site and it just starts grabbing files off your hard drive. _________________ Thom McGrath - @tekcor Web Framework Architect, Real Software, Inc. Top face Post subject: Re: Working with filePosted: Fri Sep 03, 2010 10:43 pm Joined: Tue Nov 14, 2006 5:25 pm Posts: 488 Also google apps allows that. For sure i understand the security risk but it's obviously can be bypassed by asking the user to be logging in a secure folder of web site (as affice web app and google docs do). With RB Web is not yet possible to create a sort of logging panel to access to a secure folder web site? On other side (security) looking at the sample video (customer database) what happens if anyone access to customers database and delete data? Isn't the same risk you're speaking? Probably i'm requesting so much for the initial release but i just wondering if a simple file support can be added in future ... Top Thom McGrath Post subject: Re: Working with filePosted: Fri Sep 03, 2010 10:57 pm Site Admin Joined: Tue May 06, 2008 1:07 pm Posts: 1425 Location: NotEvenOnTheMap, CT I think you're misunderstanding how this stuff works. A web app can request that a user select a file, similar to using the REALbasic OpenDialog class. From there, the file is uploaded to the server and all work happens on the server. Web applications absolutely positively cannot access files on the users hard drive, the user must give the file to the app. As for your database question, the simplest answer is just no. _________________ Thom McGrath - @tekcor Web Framework Architect, Real Software, Inc. Top rlitchfield Post subject: Re: Working with filePosted: Sat Sep 04, 2010 5:39 am Joined: Thu Feb 25, 2010 4:50 pm Posts: 105 Thom McGrath wrote:A web app can request that a user select a file, similar to using the REALbasic OpenDialog class. From there, the file is uploaded to the server and all work happens on the server. Web applications absolutely positively cannot access files on the users hard drive, the user must give the file to the app. I've been either building (years ago) or managing/directing teams of web developers since 1993. I can say that I am not aware of any browser that allows direct manipulation of local files without the use of plugins. Typical plugins used are: Adobe Air/Flex/Flash, Microsoft Silverlight, Google Gears (on its way out), etc. Google Docs: Uploads file to their servers and stores it in the cloud. You are not manipulating the file on your local workstation. Microsoft Office Online: Same as Google. For additional functionality, you can use Silverlight. Zoho: Same as Google, all files are stored on their servers. I could get into the architecture of this...but it would probably put you to sleep. RJL Top face Post subject: Re: Working with filePosted: Sat Sep 04, 2010 9:36 am Joined: Tue Nov 14, 2006 5:25 pm Posts: 488 Thanks both for all these clarifications. Assuming instead that files are stored directly on web server is it possible to interact with them (open, modify, save) ? For example view all the .doc files saved in a folder on web server, open a file (using word installed on client pc), edit it saving the file directly on web server ? Is all that possible with Real Web? Top face Post subject: Re: Working with filePosted: Wed Sep 08, 2010 12:49 am Joined: Tue Nov 14, 2006 5:25 pm Posts: 488 Thom, please, any clarification about my last post? I'd like to upgrade from pro to enterprise but need to understand better how web edition handle files ... Top face Post subject: Re: Working with filePosted: Wed Sep 15, 2010 9:15 am Joined: Tue Nov 14, 2006 5:25 pm Posts: 488 Up, Thom please any clarification on my last post? Thanks a lot ... Top ChickenScratch Post subject: Re: Working with filePosted: Wed Sep 15, 2010 9:25 am Joined: Fri Feb 15, 2008 5:14 pm Posts: 221 Unless you are working with files directly on the server (don't know why any web server would allow this unless it was under tight security precautions), you will not be able to access local (the users) files with the exception of selecting and uploading. If accessing local files is something you really need, I would imagine you can probably create a standalone app that the users can download and run on their machines. This standalone application can then talk directly to the web server or go through some sort of an API on the server. Bottom line, you can't have a remote website/server access people's local files without some sort of a work around for the security/limitations of web technologies. Top boborama Post subject: Re: Working with filePosted: Tue Apr 23, 2013 5:15 pm Joined: Fri Feb 15, 2008 2:19 am Posts: 50 What I never did see addressed here is how you would get an any "open dialog" to work in a web app. Assuming I have all the files stored and accessible ON MY WEB SERVER. I simply want an "Open Dialog Box" that will guide the user towards selecting a file (that resides on the Web Server). OpenDialog doesn't seem to exist in a Web App. Do I need to create my own 100% custom WebDialog box that mimics the functionality of the desktop "OpenDialog". I was hoping that such a feature existed and that I don't have to build and implement all the functionality (for drilling down into folders etc) myself. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 14 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
