                         completionHandler(.success(nil))
                     }
                 }
-            case .image(_):
+            case .image, .imageData:
                 let urlString = "https://api.weibo.com/2/statuses/share.json"
                 shared.upload(urlString, parameters: parameters) { (responseData, HTTPResponse, error) in
                     var reason: Error.APIRequestReason

                    status.append(url.absoluteString)
                    mediaType = Media.url(url)
                case .image(let image):
                    guard let imageData = UIImageJPEGRepresentation(image, 0.7) else {
                        completionHandler(.failure(.invalidImageData))
                        return
                    }
                    parameters["pic"] = imageData
                    mediaType = Media.image(image)
                case .audio:
                    fatalError("web Weibo not supports Audio type")
                case .video:

            #endif
            parameters["status"] = statusText
            switch mediaType {
            case .url:
                let urlString = "https://api.weibo.com/2/statuses/share.json"
                shared.request(urlString, method: .post, parameters: parameters) { (responseData, HTTPResponse, error) in
                    var reason: Error.APIRequestReason
