Uploading a Specific file rather than browsing

My app allows users to create a user-named jpg like so:-
var enteredimagename:String = imagenameentry.text; 
var file:File = File.applicationDirectory.resolvePath(('assets/images/')+enteredimagename+('.jpg'));
However I now want to allow a user to upload that specfic file automatically to my server by clicking a button which will simply upload that file WITHOUT having them browse for it. So basically I need it set up so that when the user clicks a button whatever name they type into the imagenameentry.text will be the image that gets uploaded. For example they create an image which they name yahooimage by typing yahooimage into the imagenameentry text input component. Once a button is clicked this will save this image as assets/images/yahooimage.jpg but I want to advance this button click further so that this specific jpg is then set as the file for upload without browsing for it. All the examples I've seen use the browse function though which is not what I want.
How can this be combined with the filereference method or some other way so that the file to be uploaded can be entered into a textinput component as described above rather than browsed for?

Hi David,
go through these docs: [Doc1|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71]
If you want to uplaod file on WAS then go through this doc..
[Doc2|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/607e9392-8167-2b10-b9a8-e0aa297e88c6]
hpe it hlps
Regards
Khushboo

Similar Messages

  • Why does browser download a file rather than displaying it?

    I am using a Nexus 7 device. I have a website locally on the device together with all of the data files. When I use the browser to select a file it does not need to download it. I want it to call up a list of the programs that can display the file so that I can select which app to use. When I leave that app then I expect it to go back to the browser and the HTML web page I was previou. sly viewing. It has done that at various times but has stopped now. How do I get it to resume displaying the files rather than downloading them onto the same device?

    I am using a Nexus 7 device. I have a website locally on the device together with all of the data files. When I use the browser to select a file it does not need to download it. I want it to call up a list of the programs that can display the file so that I can select which app to use. When I leave that app then I expect it to go back to the browser and the HTML web page I was previou. sly viewing. It has done that at various times but has stopped now. How do I get it to resume displaying the files rather than downloading them onto the same device?

  • Option to move files rather than to copy them in "consolidate Project"

    The option to move files rather than to copy them in "consolidate Project" seems to be missing in LPX. Bummer. Am I missing something?

    Hello Darlene.
    I don't know if this is what you want, but you may try configuring your applications screen to handle specific file types in a way you prefer:
    https://support.mozilla.com/en-US/kb/Options+window+-+Applications+panel

  • How can I change my safari preferences to save a file rather than download

    How can I change my safari preferences to save a file rather than it downloading

    danieladorotiak wrote:
    When I click on the 'save application file, it download's it and doesn't give me the option to save it.
    I can't be sure, but what probably happens is that the page doesn't give you a link to a downloadable file, but a button which activates a script. There's nothing you can do about that, because you don't control the script.
    it just downloads the transcripts not the document.
    It sounds like the downloaded file does not open or execute as it's supposed to (which, for instance, would happen if what you downloaded was a Java application, but you didn't have Java installed).
    If you are allowed to, give us the URL and we'll have a look. Also, you should add what version of Mac OS X and of Safari you are using, and you should correct your profile (which says "Mac Pro" -- this forum is for the MacBook Pro, which is a different computer from the Mac Pro).

  • Safari always opens a linked file rather than download it.

    Safari always opens a linked file rather than download it. Can't always Right Click for menu option as the web page is not setup that way.
    Have tried trashing the Downloads.plist from the user library. Still no joy.
    Thanks anyone

    Hi guys
    Thanks for suggestions. Carolyn, I did as you suggested but didn't solve problem. KeeChan, as explained in original post, that is my usual fallback but not all web sites work like that. Try downloading Safari - right click (Ctrl Click) on download button and all you get is the "Download.png" image.
    I finally found the answer. A long time ago I had downloaded and used "SpeedDownload" and had deleted it. Somehow, some trace of the app was left behind and the mime association with dmg files was messed up.
    You can not get rid of Speed Download by throwing its files away or by using an app cleaner product. You MUST run the Speed Download installer program and select the "uninstall" option to remove it.
    My browsers now download dmg files correctly.

  • How to store images as disk files rather than in iphoto db

    Is there a way to make iPhoto maintain the images as disk files, rather than import them into iphotos massive database file. I would prefer to use iphoto to just store a link to the photo, rather than the photo itself. That way I can work with the image in photoshop or whatnot without having to jerk around with the iPhoto database/

    Welcome to the Apple Discussions. No need to find a workaround. You can use Photoshop from inside iPhoto.
    Using Photoshop (or Photoshop Elements) as Your Editor of Choice in iPhoto.
    1 - select Photoshop as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements 6 the Saving File preferences should be configured: "On First Save: Save Over Current File". Also I suggest the Maximize PSD File Compatabilty be set to Always.
    If you want to use both iPhoto's editing mode and PS without having to go back and forth to the Preference pane, once you've selected PS as your editor of choice, reset the Preferences back to "Open in main window". That will let you either edit in iPhoto (double click on the thumbnail) or in PS (Control-click on the thumbnail and seledt "Edit in external editor" in the Contextual menu). This way you get the best of both worlds
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.≤br>
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Can i upload  first  Transaction data rather than master data what will hap

    hai,
    can i upload  first  Transaction data rather than master data what happends going in bw regarding performance issues like indexes
    let me know
    regards,
    murali

    Hi Murali,
    you can load the transaction data before master data. The main impact will be, that the system has to generate sid's and has to populate the sid-table of the master data objects while loading the data to a data target (cube or ods that is activated for bex reporting). This basically means that your data loads will take some more time. Additionally, if you need the master data attributes somewhere in your update or transfer rules, you will not get the correct information.
    So basically it is always a good approach to load and activate the master data before loading the transactional data. But anyway, specially in the development environment I usually don't load all the necessary master data.
    regards
    Siggi
    PS: navigational attributes of the data targets will not be available until you loaded the master data and scheduled the attribute and hierarchy change run.
    Message was edited by: Siegfried Szameitat

  • The preview page shows a pink/purple background when i place a.swf file rather than a transparency why?

    The preview page shows a pink/purple background when i place a.swf file rather than a transparency why?Would you be kind enough to help?

    Hello,
    Usually pink\purple background appears when "Show Grid Overlay" is enabled.
    please go to View > Hide Grid Overlay and see if it works.
    I am not sure if it will fix the problem as you said that pink\purple background appears when you place a swf file only.
    If this do not fix the problem I would request you to share the screenshot of the design mode for better idea of the problem.
    Regards
    Vivek

  • Forefox won't start in windows XP: I get the message that windows "cant' find the exe file" even when I click from the program file, rather than the shortcut.

    Forefox won't start in windows XP: I get the message that windows "cant' find the exe file" even when I click from the program file, rather than the shortcut.

    Delete the current Firefox shortcut on the desktop and create a new desktop shortcut via the right-click context menu on the Firefox.exe program (Send to > Desktop)

  • Are there any specific files (other than swf) that are not supported in the content viewer?

    Are there any specific files (other than swf) that are not supported in the content viewer?

    Specifically -- Is there a limitation as to any content in a PDF that would keep it from displaying correctly other than swf?

  • Thinking that I was deleting from my iPod, I have inadvertently deleted a lot of music from my iTunes library.  I clicked for retaining on file rather than sending to trash.  How do I get this music back from file into my library?

    Thinking that I was deleting it from my iPod, I have inadvertently deleted a lot of music from my iTunes library.  I clicked for saving to file rather than sending to trash.  How can I get it back into my library?

    See Empty/corrupt iTunes library after upgrade/crash or simply import the media folder back into the library. Restoring a recent backup of the .itl database will restore the original date added values, ratings, play counts, playlist membership, etc. that would otherwise be missing from the reimported media.
    tt2

  • Downloading a .rpt file, rather than displaying in browser.

    why does Firefox display a .rpt type file in the browser, rather than prompt what to do with it? I did not see anything for that file type in the Applications tab of the Options window.

    That probably means that the server sends the file as content type text/plain.<br />
    Firefox will open files send as such in a browser tab.<br />
    You need to right-click the link and use "Save Link as" in such a case to save the file or use "File > Save Page as" if you've opened the page in a tab.

  • Acrobat Reader 9.4 downloads files rather than opening in Firefox 3.6.12

    Clicking on a pdf file link in Firefox causes the file to download rather than opening.
    I've tried checking and unchecking the "open in browser" box in Reader without success.
    In looking at the Applications list in FIrefox Tools>Options>Applications, there is no listing for Adobe Acrobat Document, and I can' t find a way to add that Application. There are two entries for Adobe Acrobat Forms Document and one for Adobe Acrobat XML Data Package. Changing the Action for them doesn't resolve the problem.
    Looking at the Control Panel, there is only one instance of Acrobat Reader, that being 9.4.0. I've also tried using the Repair option in Reader.
    I'm running XP3 Pro Service Pack 3.
    Any suggestions?
    thanks
    Ken

    You can get that error if there is still an old Adobe Reader plugin in the plugins folder in the Firefox program folder.
    C:\Program Files\Mozilla Firefox\plugins\nppdf32.dll
    See also http://kb.mozillazine.org/Adobe_Reader

  • Quicktime plugin displaying SDP file rather than video in Internet Explorer

    I'm developing a streaming video application. Quicktime plug-in with firefox works fine. With I.E., the contents of the SDP file gets displayed (line by line) rather than the specified video.
    Any thoughts?
    Thanks,
    Hal

    You need to write your HTML so that it supports both the <EMBED> and <OBJECT> tags AND you need to invoke the QuickTime plug-in so that your stream plays in QT regardless of the browser's default settings. There is a great deal of information on these techniques in Apple's updated guide to HTML & QuickTime, including instructions on how to simplify coding by using Apple's AC_QuickTime javascript library.
    http://developer.apple.com/documentation/QuickTime/Conceptual/QTScriptingHTML/QTScripting_HTML_AIntroduction/chapter_1_section_1.html#//apple_ref/doc/uid /TP40001525-CH202-DontLinkElementID2

  • Launch in standalone window rather than browser?

    How do I get Flash Builder 4.5 to launch compiled apps in a standalone window, rather than in a browser window, as it does by default?
    Just installed FB4.5 after working with FlashDevelop for a number of years, and lots of new options to learn.

    After a bit of digging around, clicking on
    Project -> Properties -> HTML Wrapper -> unchecked Generate HTML wrapper file
    did the trick, and allowed a standalone window to open with the app.
    Now I am am trying to figure out why it is running much slower, than when I launched a standalone window from FlashDevelop. Any advice?

Maybe you are looking for

  • How do i convert a pdf photo to a jpg photo on mac?

    HELP.  HOW DO I CONVERT A PDF PHOTO TO A JPG PHOTO SO I CAN DOWNLOAD THE PHOTO TO IPHOTO ON MY MACBOOK PRO?

  • Bottom part of touch screen on 2nd gen isn't responsive

    I bought a used iPod Touch 2nd Gen MC model to find that the bottom part of the screen (maybe 1cm from bottom up) is completely unresponsive. The iPod itself is in great conditon, and it works completely otherwise. I took it too the Apple Store but t

  • How to send a signed SOAP message with additional HTTP Header fields

    Our Partner's integration requirements are that we send them asynchronous SOAP messages, that are digitally signed, and whose HTTP headers contains 5 or 6 additional header fields, of which 3 or 4 will need to be dynamically set during the message ma

  • Usb adapter for tethering

    i have a android phone and i would like to tether to a ipad with pdanet.do they make a usb adapter for the i pad so i can tether with a cable to my phone?

  • Satellite Z830-10 - electric shock while charging

    I've recently bought a Toshiba Satellite Z830-10 from PC World UK. I'm experience constant electric shock when my wrist touch the laptop body while charging with the adaptor. No problem when it is on battery. Does anyone having similar problem? After