 
                     attachment.loadItemForTypeIdentifier(URLTypeIdentifier, options: nil) { secureCoding, error in
 
-                        if let url = secureCoding as? NSURL {
-                            urls.append(url)
+                        if let url = secureCoding as? NSURL where !url.fileURL {
+                            webURLs.append(url)
                         }
 
                         dispatch_group_leave(group)


extension ShareViewController {

    private func urlsFromExtensionContext(extensionContext: NSExtensionContext, completion: (urls: [NSURL]) -> Void) {

        var urls: [NSURL] = []

        guard let extensionItems = extensionContext.inputItems as? [NSExtensionItem] else {
            return completion(urls: [])
        }

        let URLTypeIdentifier = kUTTypeURL as String

        let body = contentText ?? ""
        if let fileURL = fileURLs.first where fileURL.pathExtension == "m4a" {
            shareType = .Audio(body: body, fileURL: fileURL)
        } else if let URL = webURLs.first {
            shareType = .URL(body: body, URL: URL)
        } else if !images.isEmpty {
            shareType = .Images(body: body, images: images)
