New topic: Uploading to a specific folder.
<http://forums.realsoftware.com/viewtopic.php?t=47016> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message JohnV Post subject: Uploading to a specific folder.Posted: Thu Feb 21, 2013 2:44 pm Joined: Sun Jan 28, 2007 2:38 pm Posts: 175 I have look at the documentation and i have played with the upload example: but i still can't wrap my brain around upload. (Me and folder items are not the best of friends......) Given the following: dim MyFolder as FolderItem MyFolder=Function_DestinationFolder //Returns a folder Item for the uploaded file to be put in. Dim outputFile As FolderItem Dim output As BinaryStream For Each file As WebUploadedFile In files Try outputFile = New FolderItem(file.Name) output = BinaryStream.Create(outputFile, True) output.Write(file.Data) output.Close Catch e As IOException Continue End Try Next How do I tell the code to put 'output' in 'MyFolder' Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- 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]
