How to limit the file types to be uploaded to KM folders?
We need to restrict files uploaded to KM to the following types: *.pdf, *.doc, *.ppt, and *.xls. Uploading the other file types will need to give user an error message.
1) Is there a configuration to satisfy this requirement?
2) If not, what is the work-around? How to we achive this goal?
For example:
1. Go to u2018Private Documents and Discussionsu2019 hyper link.
2. Click on Owner.
3. Click on 'Send E-mail' hyperlink
4. Click on the 'Browse' button, selects a file (with .exe extension)
5. Click on 'Open' button and 'Upload' button (would like to give user an error message at this point)
Thank you so much for your help. I have searched the forum but did not find any specific answers to this issue.
Hello,
I have the same problem, unfortunatelly there's no standard way to do this and developing
custom repository services or upload commands may not attend totally my requirements.
An idea is to create FSDB CM Repositories or to map external File System repositories for
specifics needs, so once the documents are stored into a file system (windows in my case)
it's simple to implement the organization's policy, be it file types, maximum folder size, clean-up routines, etc..
However there are pros and cons, some services are not available and there are some restrictions,
here's more detailed information: http://help.sap.com/saphelp_nw04/helpdata/en/62/468698a8e611d5993600508b6b8b11/frameset.htm
As for the original folders on DB mode, we've been running KM detailed reports once a week
and deleting the "illegal" files found
kind regards,
Rafael
Similar Messages
-
[CS3][JS] How to get the file type of current document
Hi,
How to get the file type of current opening document (e.g., tif, jpeg, png) using JavaScript with Photoshop CS3.
I am using file object the open the files one by one in the folder (the files sometimes don't have the extensions).
If the current document is in tiff format then I need to convert to 8-bit, if its an Jpg image then needs to ignore the file.
Regards,
KarthikDo you really need to know the file type? What about just checking the bit depth?
var doc = activeDocument;
if (doc.bitsPerChannel != BitsPerChannelType.EIGHT) {//Not 8 bit
doc.bitsPerChannel = BitsPerChannelType.EIGHT;
//do your save etc
}else{
//Ignore -
How to open the file types of iOSAPP(ipa),EPUBfile(.epub) in windows 7(32 bit)
iOS apps can be added to an iTunes library and thereafter transferred to an iOS device. They cannot be opened directly on a PC.
epub files can be added to an iTunes library, and thereafter transferred to an iOS device where they can be read with the iBooks application. Files protected with Apple's DRM cannot be opened directly on a PC, though there are programs such as Kindle and Calibre that will open non-protected epub files.
tt2 -
Can we limit the file type in Attachment?
Hi,
Is it possible to limit the file types that the OAF attachment can upload?
Thanks!
Edited by: maeve on Apr 17, 2011 7:09 PMHi Maeve
You can make use of below code in pfr method of controler
if(pageContext.getParameter("FileUpload") != null)
DataObject fileUploadData = (DataObject)pageContext.getNamedDataObject("Bean id of OAFileUploadBean ");
String contentType = fileUploadData.selectValue(null, "UPLOAD_FILE_MIME_TYPE");
//Write logic here to limit the file type
}For more details read JavaDoc as well as refer below thread
File Upload
Hope it helps!!!
Thanks
AJ -
How to change the file type from IMOVIE PROJECT to other types of file
how to change the file type from IMOVIE PROJECT to other types of file??
thank you very much for your help=]I am not sure what you mean, but once you make a project. Then go to the share menu and you can export the project to iDVD, itunes, mobileme, quicktime.
Share export quicktime movie will allow you to export to a variety of codecs. What specific export are you looking to share the movie in? What is the final source that the movie will be displayed? -
hi,
How to identify the file type (eg: InDesign or Quark) without knowing their file type. How can we find what kind of file is that??? without their extension like ('.indd','.qxd') before import to the document...Hi subha_oviya,
Take a look at the file filtering section in the InDesign CS3 sample script ImageCatalog.jsx to see how to look for file types. I'm assuming that you're using InDesign CS3, and that you're using the Mac OS--you didn't say.
Thanks,
Ole -
How to filter the file type and size when uploadind files into APEX
Hi,
I was wondering how I can do to validate the size of a file, before moving it to my table ? I'd like to filter the file type, but for this one, I think I can use regular expressions in a validation process.
I don't know if there is a way to read the file size even before sending it into the temporary file table.
Thank you
LeinadHello Leinad,
AFAIK, you have to create an APEX validation (PL/SQL returns Boolean or Returns error text), which will query the file details from apex_flow_files table. Here you can get filetype and size etc.
So just validate and if any validation fails, then delete the file from apex_flow_files and riase error message.
Regards,
Hari
P.S. Please note that, if there are other apex validations on your page and if they fail, still apex will load the file into apex_flow_files table. So it's good idea to create a validation (PL/SQL) which will fire (condition) when inline validation errors occured. Make sure that this is the LAST validation on your page in sequence. And here you can write code to delete the file from apex_flow_files table.
Edited by: Hari_639 on Sep 20, 2012 10:09 PM -
How to identify the file type in a safe way
I need to identify the filetype of a file in my disc.
I watched over internet and i've found this good site:
http://filext.com/
that supplys the "magic bytes" for many kind of files.
I have also looked over internet for some ready class that identify different file types, and I have found FFident:
http://schmidt.devlib.org/ffident/index.html
Do you know any other Java package/class that is able to identify correctly the file types?
Thank you,.The OS just watch the extension of the file.Not always. If you create a word doc but name it with
some other extension, the OS still can determine that
it is a word doc.On which OS?
if i take foo.exe and i rename foo.doc so my OSwill
try to open it as a MS Word Document.Again, garbage in, garbage out.What you mean?
If I create a MS Word Document for a file .doc that is not a real .doc and it is not able to read, i will just lose cpu time and a lot of memory.
So it is important to understand if I need really to open MS Word watching what is the real file type
Either way, you're going to be doing way too much
work (and wheel-reinventing) if you're going to build
your own detection scheme.In the SDK there is not any file type checker, and if eventually really exists an OS like you say that is able to read inside the file, i prefer to have my own Java class that do that work in a safe and opensource way.
However in my first post i've given a site with some java code that do what I need, i just was asking if anyone know if there is any ready-to-work java class that is better for doing this work. -
How to get the File-Type from a BLOB-Column
Hi all,
I have the database table with the BLOB-Column. In this column are Word/Pdf/Excel/... files can be stored.
Now I want to open these Files from Webforms.
I can download the file from database to the client and then open the file with client_ole2.CREATE_OBJ('Word.Application');
But I can not be sure that the file is a Word-Document.
How can I know which application is saved in the BLOB-column?
RegardsHi Francois,
thank you.
Unfortunatelly I do not know the interMedia functions. Can you send me an example with interMedia?
I am working with your solution with WEBUTIL_HOST.blocking.
But when I do not give the extension for the file, in that the BLOB will be temporary stored, I get to see the Windows "Select Program..." window. When I select Word or anything else then the file will be opened, but the locking does not working.
Any ideas?
Regards -
How to determine the file type in FTP
What command code that should be sent to FTP server in order to identify if
a given name (return from NLST command code) is a file, a folder, or even a link?
Any help is greately appreciated.
Thanks in advance,
ferdieabtikuser-exit for outbound COSMAS01
Idoc extension -
Newbie stuck - how do I change the file type of a photo I am formatting from a TIFF to a JPG?
I am new to Aperture and struggling to figure out some of the basics, even with the tutorials. I need to submit a photo for an art competition - the master is a TIFF and I need a JPG under 1.8 MB - how do I change the new version's file type and keep it with the master?
Thank you in advance.I can't recommend the method proposed by Carolyn Samit; in fact, I recommend ignoring it.
Aperture is large, complex, and can take some time to learn to use. It is also quite powerful, and can handle nearly all -- or all -- common tasks you throw at it.
I have written a very short guide to Aperture which was intended to provide some firm footing for those getting started. I humbly suggest that you start with a quick review.
One of the things that presents a bit of disorientation for new users is that, in practice, Aperture keeps your pictures in a kind of limbo. There are good reasons for this -- suffice it for now to accept that you import image-format digital files into Aperture, you use Aperture to organize and optimize these as Images, and then when need a file to use outside of Aperture, you export you Image. It is at export that you format your Image: you select the file type, the compression amount, the file name, the file size, and more.
In your case, then, you will export your Version, and set the file type to TIFF (recommended above JGP whenever quality is paramount). There is no way to know the file size in bytes prior to creating it. Start with a full-size TIFF and, if necessary, knock it down by percentage until the exported file is less than 1.8 MB.
There is no reason to attempt to keep this file with the Image in Aperture. Send it on its way. Any time you need another file from your Image, you can create it fresh via "File→Export→Version".
HTH. If it doesn't, ask more.
Message was edited by: Kirby Krieger -- expanded a bit. -
Mailexample.sql how do you determine the file type?
I'm using the mailexample.sql which explains how to use the demo_mail wrapper package for utl_smtp. There's a procedure for attaching text files and a procedure for attaching binary files. I've got binary files to attach to email successfully.
How can I determine the file type so that I can use the attach_text procedure when attaching text files rather than the procedure for attaching binary files?
SandyWatch out! I think there is a bug in that code :-
bug with PL/SQL Sample - maildemo.sql
To answer your question - the usual way of determining a file type is to look for 'magic numbers' in the file that indicate its type. For example, Windows exe files often (always?) begin with the two letters 'MZ'. Zip files begin with 'PK'; Rar archives begin with 'Rar!'. Text files can begin with anything, and do not have any characteristic marker, but USASCII7 (which is what the format that routine is designed for - I think), is a characterset that only uses the first 7 bits of the byte. You could read the file, and if you find any bytes > 127, then you know it is not a USASCII7 file. I have seen various programs that 'sample' the first 64 or 256 bytes of a file instead of reading the whole file, and they usually get it right.
Hope this helps.
Takmeister -
When I attach a JPG file in my email message and send it to a Windows friend they get the message "The file type being saved or retrieved has been blocked when they try to open it so that they can save it." Anyone know why and how to fix this problem?
Your Windows friend should ask in a Windows forum why his email client won't open attached jpg files. We have no idea what email client he is using or how his Windows security is configured.
-
How to find the file by name and identify its type?
Hi,
In a folder thare are many files, the file types are doc, docx, pdf, and rtf. The file name is something like "FirstName LastName(more extrat letters).filetype".
Now I would like to find all the files with a certain name and identify their types. For example, by input "Bill Gates", I would get the list of all files :
Bill Gates.doc, Bill Gates-2010.pdf etc ...
Any good ideas are welcome.
PengyouFor finding files whose names match a certain pattern, create a FileFilter or FilenameFilter that returns true when the name matches the pattern in question, and then call list() or listFiles() with that filter.
For identifying the "type", that depends what you mean. File's don't actually have a type. It's just that they're interpreted as such in some contexts. The simplest thing is to just look at the extension. You can be more sophisticated than that, but that gets complicated real fast. It depends what you're actually trying to accomplish. -
How to read the file from a folder.
Hi All,
How to read the file from a folder or directory from the non sap server / remote server.
Regards
Sathisopen dataset filename for input in text mode
encoding default.
filename is character type variable with the destination filename.
Edited by: Jino Augustine on Apr 19, 2010 1:31 PM
Maybe you are looking for
-
I'm running MacBook Pro 15' (Late 2008) Processor: 2.4 Ghz Intel Core 2 Duo Memory: 4GB 1067 Mhz DDR3 Graphics: Nvidia GeForce 9600M GT 256MB Since installing Yosemite my Apple LCD Cinema display has gone nuts. It can only hold a single window in fo
-
the title pretty much says it all. when i use programs like mc w/o screen running the mouse is usable, but when i use screen and then use mc, the mouse no longer works. anyone knows whats wrong?
-
I just installed ITunes 11.0.4. I get the error message: "The Itunes Library cannot be saved. A folder was specified instead of a file." When I sign on next, it says the library can't be found, and Itunes wont open. I'm running Windows Vista with Mca
-
How to get option select single Values in select options
Hello All, I have a requirement where, in select-options i should avoid the range selection and should have only select single values option. User wanted to give the list of 10000 materials by using copy and paste as we have in normal abap with pase
-
Hi to everyone I have encountered a problem. That is, my initial intention was to create a program to render all the image in the images folder. The image will appear one by one in the graphical user interface (GUI), for the user to view while waitin