 
             uploadImagesQueue.addOperations(uploadAttachmentOperations, waitUntilFinished: false)
             uploadImagesQueue.addOperation(uploadFinishOperation)
-
-            /*
-            dispatch_group_notify(uploadImagesGroup, dispatch_get_main_queue()) { [weak self] in
-
-                guard uploadAttachmentIDs.count == mediaImagesCount else {
-                    let message = uploadErrorMessage ?? NSLocalizedString("Upload failed!", comment: "")
-                    self?.uploadState = .Failed(message: message)
-
-                    return
-                }
-
-                if !uploadAttachmentIDs.isEmpty {
-
-                    let imageInfos: [JSONDictionary] = uploadAttachmentIDs.map({
-                        ["id": $0]
-                    })
-
-                    attachments = imageInfos
-
-                    kind = .Image
-                }
-
-                tryCreateFeed()
-            }
-            */
 
         case .SocialWork(let socialWork):
 


                if let image = image.resizeToSize(fixedSize, withInterpolationQuality: CGInterpolationQuality.High), imageData = UIImageJPEGRepresentation(image, 0.95) {

                    //dispatch_group_enter(uploadImagesGroup)

                    let source: UploadAttachment.Source = .Data(imageData)

                    let metaDataString = metaDataStringOfImage(image, needBlurThumbnail: false)

                    let uploadAttachment = UploadAttachment(type: .Feed, source: source, fileExtension: .JPEG, metaDataString: metaDataString)

                    let operation = UploadAttachmentOperation(uploadAttachment: uploadAttachment)


            let uploadImagesQueue = NSOperationQueue()
            var uploadAttachmentOperations = [UploadAttachmentOperation]()

            var uploadAttachmentIDs = [String]()
            let mediaImagesCount = mediaImages.count
            var uploadErrorMessage: String?

