Filename of uploaded images

10-11  Source: Network gathering  Views:0 

Advertisement
I can see a couple of posts that have already been made about the filename used in the "Save As" dialog box after clicking on a FileDownload link but I can't see a resolution being supplied for this.
I am using JHeadstart 10.1.2.0 and JDeveloper 10.1.2.0.0.
I have created a table with im_orddoc ordsys.orddoc, filename varchar2(100).
In my view object I created a transient attribute to be used as the file download. Within the JHeadstart property editor, the im_orddoc is set to displayType of fileUpload and File Name Attribute to Filename. The transient download_orddoc is set to displayType of fileDownload and File Name Attribute to Filename.
The filename is being stored correctly and being displayed correctly as the file download link, only, when you click on the link, in the file download box (using IE), the file name reverts to "ordDeliverMedia.xxx".
How can I get the correct filename to be displayed in the save as dialog box instead of this generic name ?
Also, I want to be able to display a link within a form for all types of uploaded media (ie doc, exel, jpg etc...). If an image has not been uploaded, a link is displayed. If an image has been uploaded, then the image is rendered rather than a link. How can I ensure that a link is always shown regardless of media type ?
Cheers,
Brent Harlow
Brent,
Yes, we noticed this too. Both issues are caused by the "magic" of the UIX <media> tag. It automatically recognizes the file type and displays an image as image instead of download link (a user can still right-mouse-click on the image and choose Save as..."). The issue with the filename in the download box is probably a combination of <media> tag and IE, in Firefox it works fine. Could you please repost your questions on the JDeveloper forum, may be the UIX guys know of additional settings on the <media> element to get the behavior you want.
Steven Davelaar,
JHeadstart Team.
Related articles
  • Filename of uploaded images 10-11

    I can see a couple of posts that have already been made about the filename used in the "Save As" dialog box after clicking on a FileDownload link but I can't see a resolution being supplied for this. I am using JHeadstart 10.1.2.0 and JDeveloper

  • Upload image to directory and data to database from the same form 10-11

    Hello all I'm playing at building a shopping cart (never done one before) from a tutorial by Gordon Knapp at www.webthang.com. I have created the site and it works perfectly. Now I want to extend it. There is a form that allows the user to add data t

  • Problem when trying to rename uploaded images using session value 10-11

    Hi, I have a form where 9 images are uploaded made into thumb nail size and then stored in a file. What I´m trying to do is rename those thumbnails from their original name to username_0, username_1, username_2 etc for each of the 9 thumbs. The usern

  • Storing Uploaded Image Path into Mysql 10-11

    Hi I am developing a cms and am using the code David gives in his book PHP Solutions,  everything works fine but I can't work out how to extract the uploaded path so that it is stored in my table. Help would be really appreciated, I am making good pr

  • Upload image in an html form to be emailed 10-11

    Hi everyone. Here is another one of my last minute, hurry up and wait requests. I have to create a form that will enable the viewer to upload an image and send the form on its way to a predetermined email address. This is for a contest starting tomor

  • Upload image into mysql database residing on  remote server is not working? 10-11

    hello to all, i need ur help,we hav online site . i have to upload image(which can b from any pc) into mysql database residing on remote server of which we (don't hav actual path of that server). the solution i'm using is working correctly on local b

  • How do I get the Filename after uploading 10-11

    Howdy friends, here's the problem: I allow users to upload images on a previous page using CFFile. On the following action page, I want to be able to send an email telling the site owner about the new file uploads. The problem is that what I get inst

  • Delete an uploaded image 10-11

    Hi Can anyone give me instructions for deleting an uploaded image without deleting the whole record? For example, I have a record with an uploaded image, the image name stored in the table and the image in a directory. I change my mind and want no im

  • Upload image with Zprogram instead se78 10-11

    Dear Gurus , I founf in sdn a useful program that upload images instead se78. It works fine but i cant find how to pass the Description of the image.... Can you give me a hint ? Look the code .... REPORT  ZTEST2. TYPE-POOLS: SBDST. TABLES: STXBITMAPS

  • How to upload images to a DB and then view them in the site? 10-11

    Hi I have a form, and i want it to insert some data on a DB, so that the site can display that information. But i'm not able to upload images or files, because dreamweaver does not have a file upload option. I'm using PHP, can anyone help me on how t

  • Uploaded  image not shown 10-11

    hello experts, I have been done a web java application in struts. Its working fine in my pc, where i have netbeans 6.0 IDE. But when i deployed the war file at client pc, where jdk1.5 and tomcat 5.5.9 are installed, its not showing newly uploaded ima

  • Showing the thumbnail view of the uploaded image 10-11

    Hello Experts, I am developing a website in jsp, where i have a module for patron uploading their photo into the server. After a lot of gooling and searches in this site, i found code to upload the image and it uploads perfectly into the specified fo

  • Uploaded Images 11-30

    Greetings, Sorry for the noobness, but when one wishes to use an image as an item in a region (contenttype->image), it says to either browse for it, or to enter it's internal filename. Is there a way of viewing these already uploaded images in some s

  • Uploading images with jsp-PLEASE HELP 11-30

    Hi I would like to allow users to upload images(photos) from the website im doing. i was gonna use perl which seems quite easy. Since everything else i used was jsp i thought i might try to do uploader in jsp (though its seems more difficult) id like

  • Can not upload image of larger size in jsf 10-11

    i had some issues in file uploading. File uploading is working fine in my local machine and when i am using the www.mywebsite.com:8080/fileUpload.jsf but i can not upload images by using the following www.mywebsite.com/fileUpload.jsf Ie: without the

  • Error message "This program cannot display the webpage when uploading images to Cafe Press 10-11

    I have had a Café Press shop for five years and except for sometimes being slow, no problems uploading images. Now, suddenly for 3 days I get the message "This program cannot display the webpage Most likely causes: • You are not connected to the Inte

  • Simple upload image to amazon S3 winjs for windows phone 8.1? 10-11

    Hi Can behind simple upload image to amazon S3 winjs for windows phone 8.1?ThankYes. Matt Small - Microsoft Escalation Engineer - Forum Moderator If my reply answers your question, please mark this post as answered. NOTE: If I ask for code, please pr

  • "file does not exist on remote server" when uploading image 10-11

    As the title says, when uploading an image im getting the message "file does not exist on remote server"......yet dreamwever has uploaded the file, its there. All other pages on my website work fine when uploading images. Any ideas?What image ty

  • How to display uploaded image in jsp page. 10-11

    Hello, I am using struts 1.2.9 and and have uploaded image on the server. Now what I want to do display the image in jsp page after clicking on one link in jsp. I have tried many thing to display image in jsp page. But I am getting an error during di

  • How to insert or upload image in RichTextEditor ? 10-11

    Hello everyone, I am new to flex and trying to design a full-fledged RichTextEditor in flex builder,Can anyone tell me how to add or upload image in RichTextEditor at users cursor location ? also user should be able to resize and move the image aroun