Allowing only zip files to be uploaded through af:inputFile ( in jdev 11g )
I am able to upload all kinds of files through af:inputfile tag. I want to allow only zip files to be uploaded though the af:inputFile tag. Does inputFile provide any feature of this sort???
Let me address two issues here:
1. Chris has posted a correct answer about how to write a ValueChangeListener to allow only zip files. However, by the time this code runs, the file has actually already been uploaded to temporary storage. All this code does is specify what to do with the file once it is on the application server. So if you want to prevent the file from being uploaded unless it is zipped, this catches it too late. To catch it earlier, you have to write your own UploadedFileProcessor, and configure ADF to use it. Read more in Appendix A, section A.6.2.11 of the Fusion Web User Interface Developers Guide for Oracle ADF 11g.
2. While you have to write some code to handle uploaded files yourself (hey - it isn't a lot of code, and I don't care how declarative ADF is, sooner or later you're going to write a little code) if you are uploading to an ORDSYS.ORDDOC column in your Oracle database, ADF CAN do that declaratively.
Similar Messages
-
Allowing only pdf files in document library using Javascript
HI,
I have a document library in sharepoint 2013, where i want only pdf files to get uploaded in it. I have created event receiver for the same and it is working fine. but i want to restrict the files using javascript on
the page itself, since, In event receiver, after the file is getting uploaded, it is checking and throwing error. So, is there any way to check for the file type before uploading the file and show error message if wrong file is uploaded?
Harikrishna BaskaranBind event to the upload button and add jquery to validate the file extension. Refer to the following posts for more information
http://stackoverflow.com/questions/13124950/change-onclick-event-input-type-button-in-ie-8-9-ff-with-jquery-won%C2%B4t-wo
http://stackoverflow.com/questions/4234589/validation-of-file-extension-before-uploading-file
--Cheers -
I want to allow only mp3 files in uploading, File dialog have to show only
In my project , user have to upload Mp3 files.
we want to show only mp3 files in file dialog .
in file dialog ,filetype field contain only mp3 .
let me help inthis.
Regards ,
Vyam.Thanking you for giving reply to my query.
I have seen in VB and someother language is it
possible.No you haven't.. You saw something else entirely.
>
Actually am trying with this is in html file element
only , But am unable to control the file dialog
window with selected Extension files.
Right. You can't do what you are trying to do it's impossible. You can stick an accept attribute on your form tag and It MIGHT work. But this is browser dependent and will not neccessarily be enforced.
Best to do what I told you before. Validate the uploaded file for type on the server.
It is showing All files. I tried with accept ,
enctype also , but failed.
Then you are hosed.
can we do with FileFilter class in java.Is it
possible.
How do you see this working? If you want you could build an applet that you could sign that would upload the file for you I suppose. Seems a lot of unneccessary work.
Thanking you,
Vyam.Welcome. -
I have created an app in accordance with your requirements. Most notably, the app runs well and error free in your provided simulator. However, as I attempt to submit the app on the https://marketplace.firefox.com/developers/submit/ page, immediately after the .zip file (contains the required manifest.webapp in the root directory) is uploaded, the system just gets stuck at the "uploading APP.zip" part and I am never allowed to proceed. This is quite frustrating. Any help with this matter would be greatly appreciated.
Regards,
Ethan-AnthonyHi,
This is more of an end user support forum so I'm not sure that many of the people here are best placed to answer questions about submitting apps to the marketplace.
The best thing would probably be to connect to the #app-reviewers team via IRC. Then you can chat directly with them and get answers to your questions.
See here for details on how to connect to IRC: https://wiki.mozilla.org/IRC
Alternatively you can email: [email protected]
Also see here for more information on Reviewers/Apps/Testing:
https://wiki.mozilla.org/Marketplace/Reviewers/Apps/Testing -
Uploading prompts as .Zip file.
What is the correct procedure for uploading multiple prompts that have been .zip'ed for UCCX 7.01.
my upload option in prompt management clearly says "Please click the browse button to locate the prompt or zip file and then click the upload button to upload the file." however when i try to select my zip, i get "File name does not have a valid extension. Only .wav files can be uploaded".
Obviously i'm doing something wrong, but don't see a lot of helpful tips in the documentation.
ideas?
thanks!
JonMThis is a bug. Upgrade UCCX to the latest service release. Please see this thread for more info...
https://supportforums.cisco.com/message/1050782#1050782 -
Problem adding zip files - is there a size limit?
Is there a size limit on zip files that are uploaded to the system? I have tried to upload zip files (18Mb and 28Mb) this morning, and on both occasions not all of the zipped information is uploaded.
Please could you let me know why only half of my files and folder names are being loaded.
Thanks very much
KateI had this problem. Portal was installed here with the default
storage settings on all of the tables, including
WWDOC_DOCUMENT$. My upload would crash with NO ERRORS. I
looked at the apache error_log file and saw just what I
expected: that table was blown out becaus it had reached max
extents. I moved that table to its own gigantic tablespace and
sure enough, the load went through fine. You might also be
interested in what you find in WWDOC_DOCUMENT$. Because even
after a purge, I found that files that got partially loaded were
still in that table, even though they weren't visible through
the portal. So I deleted them, and freed up even more space.
I'd recommend you move that document table to a separate
tablespace that the DBA can manage separately, because it's not
going to grow like a traditional transactional system, so it
really doesn't belong in the same area.
Hope this helps,
Adrian Klingel
Exaweb -
How to exreact multiple pdf files from a zip files from application server to presentation server
Hello exprts,
I am passing one pdf file and one text file to zip file in apllication server through my custom program and then downloading it using standard function module to my desktop. its working fine. Then I added another pdf file to my zip file. But only single pdf file is getting download . So can you please help me regardiong this issue?Dear Experts ,
I finded out the way to extrcat pdf files in presentation server. But now my problem is that I am not able to add multiple pdf files in a zip file. When I am adding new pdf file then older one is not coming in read data set. So please kindly tell me how can I add multiple pdf file in my zip file and again I can get all the pdf files from here. -
One Orchestration for Multiple ZIP file FTP Solution.
Problem:
Zip files are being generated from multiple locations on my network. I do not need to see any information in the Zip files. My goal is to pick up the files and transfer them to various external FTP servers.
Solution:
BizTalk picks up the zip file using a pass-through(file) receive port. I created an orchestration because I would like to send email based on failure/success. Inside the orchestration I am using the receive port information to assign the destination party.
The send port then filters based on destination party and sends to external FTP server.
This gives me the ability to have 1 orchestration for multiple transfers. I wanted it to be as generic as possible.
1 Orchestration - 10+ Receive Locations - 8+ External FTP Sites.
Question:
Has anyone done this before? What should I watch out for? Do I have a good solution to my problem?Yes ,
This is totally a valid business scenario were you have multiple publisher of the message and there are different subscriber( FTP sites ) for your processed message .
You can have multiple receive location inside the same receive port and also multiple send port for different message subscription .
So ,Its all good from your side :)
Thanks|
Abhishek -
Zip file uploaded by CF can't be unzipped by CF or Java
I'm having a WTF moment right now trying to track down this
problem. I am creating a monitoring tool for our merge email
system. What I would like to do is submit a job zip file through
our upload form, in which case I just need to upload a zip file
with cfhttp to the action page.
What I'm running into is a problem unzipping the file when it
is on the server. However if I go to the server the received file
opens fine with WinRAR or Windows Explorer. If I manually go to our
form and upload the exact same file it works fine. Really odd. I
can only find very basic information about uploading files with
cfhttp and tried all of the attributes that seemed logical.
Attached is very basic example of the problem. It may end up
being a bug in CF or something.
The code does the following
1. creates a text file
2. creates a zip file with the text file
3. tries to unzip the file to make sure it is fine
4. uploads the file (processed by a <cfelse> block at
the bottom)
5. tries to unzip the file uploaded
The error occurs in step 5. CF just can't unzip the uploaded
file, but I can unzip it using other tools.
================danielmroberts,
I tested it and received the same error. Using
GetHttpRequestData() I did notice the size of the received file is
usually 2b bigger than original. Though I do not know if that
matters at all.
The strange thing is if you add another parameter after the
zip file (an empty text file or a form field), it suddenly works.
<cfhttp url="
http://#cgi.http_host##cgi.script_name#?upload"
method="post" result="jobSubmitResult">
<cfhttpparam name="zipfile" type="file"
file="#path#temp.zip" />
<cfhttpparam name="placeholder" type="FormField"
value="Empty Field">
</cfhttp> -
Ipad only uses one file name when uploading images via email
We have an image tool that uploads images to a template website. The problem is the file names for these images must be unique any duplicate file names will be rejected. Some of our users want to be able to upload from the field but Ipad only assigns the file name "photo.JPG" to jpegs. It doesn't seem to include the sequential extension that actually does exist for the image on the file name when uploading. Is there a way to get ipad to do so, or is this something that Apple maybe want to consider looking into. I can easily see the average Joe emailing themselves images and hitting save only to replace and lose an older image because let's face it, not all users are on MACs and PC's do not allow multiple files to have the same file name in the same folder.
Hi,
Based on the description, you could send email to external addresses without the Twin Oaks software. However, with the Twin Oaks software, you couldn't send successfully.
For this issue, I recommend you enable message tracking and check whether you could retrieve message tracking log entires when you send emails to external addresses through the Twin Oaks software.
If you couldn't retrieve message these tracking log entires when you send emails to external addresses through the Twin Oaks software, it means that the Exchange server is OK and the crux of the problem is the Twin Oaks software.
Here is an article about message tracking log for your reference.
Get-MessageTrackingLog
http://technet.microsoft.com/en-us/library/aa997573(v=exchg.141).aspx
Best regards,
Belinda
Belinda Ma
TechNet Community Support -
To upload a excel file to dB table through webdynpro ABAP
HI,
I am unable to upload a excel file directly by using func module "HR_KR_XSTRING_TO_STRING".
If file is in tab delimited then only, I am able to upload.
Suggest me if there are any other options to upload a excel file.Hi,
The below link gives you an explanation of how you can upload an excel file to web dynpro.
http://www.****************/Tutorials/WebDynproABAP/Upload/Page1.htm
Kindly read go through the below link, as this issue have been brought up before
http://forums.sdn.sap.com/thread.jspa?threadID=1831838
Thanks and regards.
Edited by: Suraj Ravindran Nair on Feb 24, 2012 6:24 AM -
Hi, download of the trial product (photoshop ele 13) does nt start even after successfully installing the Adobe download assistant successfully. Only .7z file is shown, .exe file is nt visible. Whn i try to extract .7z file wd 7-Zip error pops up " cannot extract **.7z as archive" .I've tried fresh download of adobe photoshop ele 13 but same error occurs.
OS:Windows 8.1
Storage loc for adobe down assistant : C-Program file(x86)-Adobe download assistant-adobe
Storage loc for adobe down assistant: C- Adobe photoshop assistant 13- PhotoshopElements_13_LS25_win64_1. 7z
After this I try to extract ** .7z file but following error occurs :
After this I try to extract ** .7z file but following error occurs
Kindly Help.Thanks fr revert !
After clicking on the provided link , Above error pops up. I clicked "ok" n allowed download to complete after which same previous error shows up! -
Allow Zip Files as Attachments in PDFs
As many of you are aware, newer versions of Acrobat have removed the ability to open or save zip files attached to a PDF (without a complex registry hack).
Notice that I've attached a zip file to this post. Adobe: If you've deemed zip files safe enough to be hosted and delivered in your own forums, maybe they're safe enough to be reinstated in PDFs?
I believe no product should force security on its users without providing them any practical way to override. Web browsers, email clients, and operating systems warn you of potentially dangerous files and then let the client make the choice. What if it's a zip file from a trusted source full of harmless text documents? Too bad - because Acrobat says so. Acrobat makes no attempt to examine the zip file to see if perhaps its contents are dangerous - it just sweepingly decides zips are far too dangerous to let the user have any voice in the matter. I fundamentally disagree.
I think Adobe got this one wrong - and I cast a vote that they loosen the noose on zip files on a future release. I'd like to hear other users' thoughts on this issue. Adobe is good at listening to their users - so tell them what you think.
Cheers,
DanThis information is for Acrobat Professional users in Windows XP. I don't know if it
is valid for PCs using only Acrobat Reader.
Adobe is wrong but that doesn't mean we have to live with their problem.
Since when does anyone open attachments from unknown or unsolicited sources?
Some zip files can be or contain executables (.exe) but that is no excuse for not
knowing where your emails or files come from and not having up to date virus software.
Adobe did not disallow zip file attachments, they just buried the enable so deep
that the average user would never find it and using an editor (regedit) that most users
have never heard of. As far as I am concernced, without any word from the Adobe
Tower, this is pure marketing.
I have inserted a jpeg photo that shows, for Windows XP, where to find the hidden enable
and how to edit to allow opening OR saving (recommended) zip files. This is the
file I have been passing to my Engineers and suppliers. The information comes from
a help call I put in to Adobe.
Editting the registry is not difficult, you just need to be sure that nothing unusual
happens while editting the text or saving after done. Have an IT person or other
superuser do the edit if you are unsure. After editting and saving, select BuiltInPermList,
then pulldown File and click Export. This produces a one-click edit that will fix the
problem on any Windows XP computer.
Adobe is also blocking rar, tar and tgz compressions.
This edit needs to repeated anytime Acrobat is reinstalled. -
Why can't I upload a .zip file to my Creative Cloud?
Each time I try and upload a .zip file it gets about 80% complete then I get a message that says "Sorry, an error has occurred." I've uploaded lots of .zip files in the past. What has changed???
JimHdk wrote:
You can directly transfer photos via Bluetooth or WiFi between the iPhone, PCs, and Macs with an App like Photo Transfer.
Huh? Bother to read the app description? Only works over WiFi. -
Zip file upload to content area
Has anyone tried zipping up a huge folder on the filesystem, say around a 100 files and uploaded the zip to a content ara folder? I could successfully upload the zip file but and then used the unzip link next to the uploaded content. It unzips as well, but when I click on the folder to view the unzipped files, before it could show me the 100 odd files, the server times out. I believe it is due to the number of files in a single folder. If I do the same thing with a hierarchy of folders and sub-folders containing only 10s' of files it works and displays the page to me with all links working.
I hope you must have tried this, and pls. help me and provide me an alternative.check out this OSS Note No. 925327
<a href="http://service.sap.com/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=925327">HTTP error: 411 Length Required in upload to content server</a>
Regards
Raja
Maybe you are looking for
-
Bug with subscribed folders?
I'm pretty sure this is, or at least considered to be, a bug in Sun's IMAP implementation that comes with JavaMail 1.3 but I'd like other people opinions first. If I have 3 folders: INBOX INBOX.Foo INBOX.Foo.Bar and I am subscribed to INBOX.Foo.Bar b
-
JSF 1.2 and h:commandButton custom renderer problem
Hi everyone! I'm working on my custom h:commandButton renderer for a couple of hours and I cannot solve some issues... First of all: what I want to do is to substiute default h:commandButton renderer with my own which will call standard renderer and
-
How can I get a sim card for my iphone 5 that I bought on craigslist?
Where can I find a sprint sim card for my iphone 5
-
No full screen mode after update to 10.2.152.26?
After updating Flash player to version 10.2.152.26 I do not get a proper fullscreen mode in my slideshow. The command works but the fullscreen picture is pushed on the left side of the window and not visible totally. This happens in IE8, FF4, Opera a
-
ITunes keeps renaming my songs. Can anyone help me?
Whenever I play some of the songs in my iTunes, they are automatically renamed to "Track 0" or "Conductor Track." Can anyone help me fix this?