CF9 - best way to restrict file type for uploads??

Hello, everyone.
We're using CF9 in both dev and production environments, with little chance of upgrading to CF10 anytime in the near future (it's my understanding CF10 does have a way of detecting a file mimetype that CF9 doesn't have.)
What is the best way to restrict uploads to specific file types in CF9?  We just need to limit uploads to primary Office (doc(x), ppt(x), xls(x), etc.), PDFs, and gif/jpg (no bmps, pngs, etc.)
Obviously, just detecting file extension is fruitless.
Thank you,
^_^

What about just using the accept attribute? That's what it's there for. Just something like:
<cffile
action="upload"
filefield="fileContent"
accept="application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation, image/gif, application/pdf"
etc.

Similar Messages

  • Restrict file types being uploaded as attachments

    Hi,
    We are using SRM3.0 with EBP 4, we would like to restict the file types that users can upload as attachments while creating shopping carts.
    Is there some way that we can maintain a good/ bad list of attachments.
    Thanks
    R.M.

    Hi Joseph,
    Thanks for your reply,
    Could you please explain what is DC30, I cant find any such Tcode or table in srm.
    Thanks
    R.M.

  • Best way to share files with slow upload

    Hopefully this is the right place..
    I have a large number of files (about 500mb each) that I need to send to the states (I'm in Ireland) but don't want to have to burn discs and post them etc.
    As the title suggests I have a relatively slow upload speed. Anyone know what the best way to do this would be?
    currently I am doing 7 files that total 2.3GB by iDisk and it says it will take 13 hours..
    Regards
    Message was edited by: alex.lyons
    Message was edited by: alex.lyons

    Hi Alax
    Just a thought if there's no rush, how about investing in a 4GB flash drive or 4GB SD Card if you have a card reader on both ends and send the data that way?
    Example's:
    http://www.amazon.com/Kingston-DataTraveler-USB-Flash-Drive/dp/B000M2GYF6
    http://www.amazon.com/Sandisk-Secure-Digital-Memory-SDSDB-4096/dp/B000P1O73A
    Dennis

  • Best Video File Type For iTunes and Xbox360

    I have an extensive digital library and I am trying to have one file for all devices.
    What I am looking to do is to have one file that can be managed by iTunes, play on my iPhone and stream to my xbox360 via Connect360 and look good. File size is not a concern. I dont want to do multiple encodes.
    The important features are one file playable by iPhone and Xbox360 via Connect360 that can be managed by iTunes. I would like the video to be of very high visual / audio quality.
    I use handbrake to convert video files.
    My question is, what is the best file type for this scenario? I have used mv4 but more recently I am using MP4 with 264...
    Again, one file to rule them all....
    Thank you in advance!

    Old thread for others, but,,... It isnt necessary to convert a bunch of files, if you have Plex on your pc, and on your iphone/ipad.
    I would have spent a month converting the terra bytes of all the video files that I had but i just airplay and my Plex app to send nearly any type of file on my Imac directly to my Apple tv.
    It converts on the fly any file that isnt supported.

  • Advice on best way to setup Disaster Recovery for SOA Suite 10.1.3.4

    Hi Everyone,
    I need some advice on the best way to setup Disaster Recovery for a SOA Suite 10.1.3.4 install deploying JSF/ADF OC4J applications.
    The way we are trying to do it at the moment is manually copy the "applications" and "applications-deployments" folders for the OC4J application on the production server, then compress and ship the files across to the DR application server nightly. (We don't require high availability).
    In the event of a disaster we then extract the files and copy to the OC4J instance (pre-created and configured) on the DR server. Unfortunately to date we haven't been able to reliably setup a DR application (seem to mostly get 404 errors etc), even though the OC4J application has its connection pool resolved to the DR database and is showing as "up" in the ASConsole.
    My question is, is there a more "native" way to do what we are trying to do. We do not have Enterprise version of SOA Suite or 11g database so any advanced recovery features are not an option. The setup is also stand alone, i.e. we are not using clustering or RAC etc.
    Any ideas would be really helpful.
    Thanks,
    Leigh.
    PS we are also running the production apps server with Oracle Application server 10g 10.1.2.3.0 as the HTTP apache server (with Forms, Reports and Discoverer deployed) and the SOA Suite 10.1.3 applications use the 10.1.2 HTTP server via the HTTP to AJP bridge. So the 10.1.3 OC4J instance is configured to use AJP on port range 12501 - 12600.

    For enterprise solutions, AS Guard would work.
    http://download.oracle.com/docs/cd/B25221_04/core.1013/b15977/disasrecov.htm#sthref303
    However, since advanced recovery options are not available (as you said), then what you are doing should not be too bad.
    AMN

  • Best Way to Define Employee Numbering For Different Countries

    HI all
    I am working on for a project which will be for Multiple countries.But Each country has different Instances.Now the questions is What could be the Best way to Define Employee numbering for all the Regions ? As for as My knowledge goes It would be Number prefixed by Country.Then How we can have Alpha numeric in employee Coding ? We need to have Fast Formula to Ahieve this task.If any body has come across this scenario please share your thoughts .Any thoughts are greatly Appreciated.
    Cheers
    Kumar cs

    If you have each country on a different instance and you want employees to retain their employee number on transfer between countries, I believe you have two options:
    i) Use manual numbering. One recent change to the system is that you can update the numbering profile from Auto to Manual and back to Auto again. So you could potentially leverage this manual workaround when a cross BG transfer happens.
    ii) Bespoke module to export all emp numbers into a 'central repository', e.g., flat file, that can be accessed by all instances, imported regularly and then referenced by your Fast Formula. You would also need processing to determine when a person is a transfer from another BG or a new hire; probably have to be some control field on flex. Basically, this is a requirement made difficult by the decision to host each legislation on a different instance; I would never recommend clients to go down this route but I guess it's too late in your case.
    If cross BG transfers are not common, e.g., less than 5 a week, I would recommend option 1.

  • Best way to transfer files from old Macbook Pro to new one?

    I just got a new Macbook Pro from Apple...YEEEEAAAHHHH! 
    So....
    What's the best way to transfer files from old Macbook Pro to new one?  I know Migration assistant, but is there a recommended way?  I don't want to put do a system restore or transfer everything from the old laptop, but I do want to move important things like photos, music, documents and such over.  Any suggestions on best way to do this?
    Another question, perhaps subquestion.  If I have, say, an older version of iPhoto but a newer version of one on my new Macbook Pro, will it still transfer photos no problem?
    Just looking for hints from the experts so this puppy is set up in the best way possible.

    Just one comment on this:
    ‘If I have, say, an older version of iPhoto but a newer version of one on my new Macbook Pro, will it still transfer photos no problem?’
    the problems are ALWAYS in the reverse way, when you have the newest (or a newer) version of a given app, and wish to transfer its library to an older version.
    Otherwise, see the link to Pondini.
    I have been using Martin Jahn’s iBackup, with which I have become accustomed and works fine. It also makes daily backups. Its advantage over other apps is that you may add whatever you wish to save, beside its default settings (which you may delete or cancel, of course, even if not recommended); it also has a friendly interface and easily customizable. Of course, this is a personal view, you may try other methods as well, or other backup apps. All are good if you are satisfied and correspond to your needs.

  • [vmware] Best way to share files between host and client

    Good afternoon!
    I have successfully installed VMware server on my machine and set up a virtual machine, powering Windows XP for study issues (emulation via wine does not do the trick for me). The virtual machine runs fast and stable but does not meet my requirements unless I have two issues faced:
    First:
    How to access a USB pendrive monunted by the host system properly within the client?
    Second:
    What is the best way to share file system space between host and client? Should I set up a Samba share which is accessible for both host and client or is it save to grant my VM access to my physical hard disc as a whole (using it as a partition)?
    Thanks for answers in advance, I have still quite a lot to learn, when it comes to VMs.
    Regards,
    ~cg

    Do not setup your VMware to be able to access your physical disk as a whole. This would have you mounting the filesystem twice, corrupting it in the process.
    You /can/ setup VMware with Sharing Folders that lets you share your filesystem (either / or just /home or something else) and that is what I would recommend.
    As for accessing the pen drive from both operating systems at once, I'd say use the same Sharing Folders method. I always share /mnt so that I can access my cdrom/USB/etc from the vmware OS.
    The sharing folders is basically the same as a samba share, but uses vmware's own method (HGFS). Samba is more secure (if you are worried about your VMware OS breaking from it's shell and attacking your real filesystem, which is unlikely). You need the vmware tools installed to make use of it.

  • Best way to link queue type to data typdef

    I am using "Obtain Queue" to create a multiple queues from multiple TypeDef formated data clusters. I want to then put these queue references in a cluster of their own so I can refer to them where necessary in my code. When I modify the data types by editing the corresponding typdefs I would like for the queue references to change accordingly. In other words I think I need to link the queue references to the data typedefs.  What is the best way to do this?
    For instance, If I create a cluster of queue rerences using bundle by name I would have to create an input cluster with a format that would update as I change my origianl data typedefs. Can this be done, and if so how?
    Possibly the "problem" is due to my dsire  to have a nice "bundle by name" cluster for clarity in my code. I suppose if I used an array this isn't a problem. That is not as elegant a solutions, but I guess elegance is sometimes in the eye of the beholder.
    Any suggestions?
    Solved!
    Go to Solution.

    Did you replace any constants that you had on the block diagram with the typedefed version? All instances that you ar eusing need to use the typedef.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Best way to create customized counter for slideshow.

    Hello everone. I am stuck on this one. What is the best way to create a customizable for the slideshow widgets. Im looking to create circles or boxes that change color in relation to the picture in the slideshow. I am sure that I have seen it on a muse site before, but just can't figure how to get it done. Thanks!

    Have you tried using:
    Effect > Text > Numbers ?
    You could also have found that answer by searching for "numbers" at the Community Help site. It's really a great resource in addition to the online help files. Try it out!
    (It would have been the first result returned from the search...)
    http://www.adobe.com/support/aftereffects/

  • How to setup a routing rule for a specific file type for the content organizer?

    Hello,
    how can I set a routing rule for a specific file type, for example for "pdf" or for "docx", for my content organizer?
    As standard I can only choose for the rules the content type, name and title of the file uploaded.
    Thank you in advance!
    JohnyG

    Hi Johny,
    Based on your description, my understanding is that you want to create a routing rule for a specific file type.
    I recommend to create rules with the conditions as the image below shows for the Document content type(for example: .docx files):
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Best way to keep files on iMac and Powerbook in Sync

    Best way to keep files on IMac and Macbook Pro in Sync

    Hi ...
    Using the Migration Assistant would be tedious and time consuming.
    You can setup an iCloud account and sync your Macs since you have Lion installed on both. If you have iCloud enabled, if for example you add a bookmark in Safari, that bookmark will sync via your Wi-Fi network to the other Mac automatically.
    Read here > Apple - iCloud - Learn how to set up iCloud on all your devices

  • What is the best way to transfer files without iTunes?

    Long story short, my computer died and I now do everything on my iPad. I am having trouble figuring out the best way of juggling files so I can print them though the school computers. I don't even know if I can email it as an attachment. Most of the files are from pages, keynote, or pictures. How do I store it so I can open it on another computer. I would like to use a flash drive but there is no USB port on the iPad.
    Thanks for your help! I am new at this.

    You can email the files. When you are in Pages - with the document open - tap the Wrench Icon (tools) in the upper right corner and tap on share and print - then tap email document in the next window. Your mail app will popup and you can email the file and save it to your school computer then open and print it. The process works the same in the photos app - select the photo - tap the arrow icon in the upper right - tap email photo. Keynote should work the same way - I don't have Keynote.
    DropBox - as Rudegar explains would also work. You will have to download the app on the iPad and use it on the school computer as well - you can get a free account for up to 2GB from DropBox - but I don't know if the school will allow you to download the application on your computer. The application for the computer is free as well.

  • Best way to sync files on 2 different MacBook Pros?

    i use 2 macbook pros. what is the best way to keep files - docs, pdfs, psds - synced on both computers?

    An external hard drive that you move between the two computers. Keep all the active files you're working on on the external drive. At the end of each working session, save copies of them to the computer's internal drive before moving to the other computer for your next work session.

  • I am getting pop ups on safari and firefox lately and am worried i may have malware or something now on my computer doing this. What is the best way to check this out for sure and remove it?

    I am getting pop ups on safari and firefox lately and am worried I may have malware or something now on my computer doing this. What is the best way to check this out for sure and remove it?

    Please review the options below to determine which method is best to remove the Adware installed on your computer.
    The Easy, safe, effective method:
    http://www.adwaremedic.com/index.php
    If you are comfortable doing manual file removals use the somewhat more difficult method:
    http://support.apple.com/en-us/HT203987
    Also read the articles below to be more prepared for the next time there is an issue on your computer.
    https://discussions.apple.com/docs/DOC-7471
    https://discussions.apple.com/docs/DOC-8071
    http://www.thesafemac.com/tech-support-scam-pop-ups/

Maybe you are looking for

  • Error when calling a popup window in the initial screen of an application

    Hi,     I am calling a popup window in the Initial screen to select the variant list. I am getting an error reference to Null Object reference. Here is the Error. Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED_NO Exception              CX_SY_REF_

  • Symbian S^3/Anna Calendar Meeting Request (Invitee...

    First... I want to explain how this came about. I've never sent out a Meeting Invite from my Nokia N8 (PR1.2) to anyone before. However, in the days of collaboration, people send & receive Calendar Appointments to and from different Email/PIM Clients

  • How to make OBPM 10.3g solutions highly scalable and performant?

    Hi experts, I would like to request some advice on how to make Oracle BPM 10.3g based solutions highly scalable. In our organisation, we are rolling out few processes (3-5) on OBPM 10.3g, with couple of 100 concurrent users on each. But going forward

  • Final Cut Pro X Not Exporting

    I am a brand new mac user, and I only upgraded for the use of editing with the software Fincal Cut Pro. The program does everything it's supposed to whilst I edit, but I'm done edititng now and I can't get the file to export. I click on the "share" b

  • Itunes cut off song names

    My songs names are cutted by itunes, a tried to convert with the ID3 converter but nothing has changed... Thank you for your help and sorry for my poor english.