locked
Attachments with no extension RRS feed

  • Question

  • CRM4 on Premesis- Our users are attaching files(photos from their camera's) to records with no file extension then complaining they can't reopen them.

    Since the attachment administration only excludes extensions any ideas of ways to prevent this? 

    Friday, August 20, 2010 12:51 AM

Answers

  • I just realized it was one person after I fixed the 1000 original ones and saw that all the new ones were by one guy. I remoted on to his laptop today and saw that when he browses to the memory card in the camera to attach the files, they indeed have no '.jpg'.

    He says he doesn't have time to rename the files before uploading so I suggested he tell his manager he needs a new camera or send it to me so I can see what it's settings are. No help from google on that.

     

    Friday, August 27, 2010 5:06 AM

All replies

  • Hi AceInAus,

    I haven't tried this myself but I think you should be able to achieve it by plug-in.

    Check the filename with file extension before upload. 

    Friday, August 20, 2010 3:36 AM
  • Hi,

    Could you please download the Plug-in Registration Tool code and extract the code which registers the plug-in on Disk ?

    Hope this helps.

     


    Thanks, Ranjitsingh R | http://mscrm-developer.blogspot.com/ | MS CRM Consultant
    • Proposed as answer by Ranjitsingh R Friday, August 20, 2010 5:29 AM
    • Unproposed as answer by AceInAus Friday, August 20, 2010 7:28 AM
    Friday, August 20, 2010 5:29 AM
  • It feels a little like overkill to develop & run a plugin for every attachment(I consiously avoided posting in the development forum)

    I prefer education over development on this. Was hoping there could be another way other than SQL updates I used to fix the existing 1000.

    Friday, August 20, 2010 7:44 AM
  • I haven't tried this but you might be able to leverage workflows or javascript to check the attachment and see if there is a valid file extension like .jpg, .doc, ........ and if not, generate an alert or send an e-mail notification follow-up to the individual who created the note.

    Regards, Donna

    Monday, August 23, 2010 3:03 PM
  • I tried workflows,  unlike other entities, notes don't allow you to update the note in the workflow, only the related entity, I could end an email to th enote creator.

    Notes also don't provide a form to add Javascript to.

    Wednesday, August 25, 2010 8:07 AM
  • I suggested workflows as a method for notification to the end user because you said you want to educate.  I thought you might be able to create a workflow to send the person who creates the note some sort of email notification.  I briefly looked at the workflow for a note and you can check to see if there is an attachment (is document) and if no attachment, cancel the workflow.  If there is an attachment then add some steps to see if the file extension is a valid type or not an invalid type.  Based on the result of that or those checks, take action like sending an email notification.

    You're other option is going to be to develop a plug in of some sort.  It could be a simple 'alert' to the user when they create a note and add an attachement without a valid extension and then disallows the attachment until they fix the extension.


    Regards, Donna

    Wednesday, August 25, 2010 11:06 PM
  • Can you not just set settings on the camerass to save as a specific file type.

    Otherwise the user can still save the file from the notes to there local machine and then open it in there favourite program. What type of camera are they using that doesn't save with a file extension, just curious?


    MSCRM Bing'd - http://bingsoft.wordpress.com

    Wednesday, August 25, 2010 11:46 PM
    Moderator
  • It's a Canon Powershot a560.

    This is an off site user I haven't been able to check his camera. But did try with another one I had that worked fine. 

    Friday, August 27, 2010 12:13 AM
  • If it is only one person then that makes the recommendation so much easier.  The workflow should work fine for you.  Just send the user a notification when he or she creates a note with an attachment that does not have a file extension of jpg or gif.


    Regards, Donna

    Friday, August 27, 2010 1:02 AM
  • I just realized it was one person after I fixed the 1000 original ones and saw that all the new ones were by one guy. I remoted on to his laptop today and saw that when he browses to the memory card in the camera to attach the files, they indeed have no '.jpg'.

    He says he doesn't have time to rename the files before uploading so I suggested he tell his manager he needs a new camera or send it to me so I can see what it's settings are. No help from google on that.

     

    Friday, August 27, 2010 5:06 AM