uploading

NSURLSession and stream upload in background

限于喜欢 提交于 2019-12-03 20:01:19
问题 I have some problems with using NSURLSession to upload photos from Asset Library to the server. At first NSURLSession doesn't support streaming upload. I got an exception when trying to using that: @property (nonatomic, strong) NSURLSession *uploadSession; ... _uploadSession = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration backgroundSessionConfiguration:kUploadBackgroundURLSessionIdentifier] delegate:self delegateQueue:nil]; ... NSURLSessionUploadTask *task = [self

Twitter's statuses/update_with_media on iOS returns 500 error

断了今生、忘了曾经 提交于 2019-12-03 18:00:20
问题 Does anybody use new twitter functionality, statuses/update_with_media? I've tried to use it to upload photo and it returns internal server error. My request is following: *********************** start of request ************************* POST /1/statuses/update_with_media.json HTTP/1.1 Host: upload.twitter.com User-Agent: CGJ/0.9.7 CFNetwork/485.13.8 Darwin/10.6.0 X-Twitter-Client: MGTwitterEngine X-Twitter-Client-Version: 1.0 X-Twitter-Client-Url: http://mattgemmell.com/source Content-Type:

Shiny: Show buttons only after file has been uploaded

故事扮演 提交于 2019-12-03 12:25:49
问题 I'm experimenting with Shiny and I love it. I built a little application where students upload a csv file and then choose a dependent variables and independent variables and then R computes a linear regression. It works fine. I have it uploaded at: http://carlosq.shinyapps.io/Regresion [You can use this file to test it if you want. "beer" is the dependent variable and the rest of the variables except "id" are the independent] Here's server.R: # server.R library(shiny) shinyServer(function

Error Uploading Screenshots to new iTunes Connect

守給你的承諾、 提交于 2019-12-03 11:52:07
I've been experiencing this issue for two days, since the new iTunes Connect became avaiable. When adding a new screenshot, at first, I was receiving the error: Your app information could not be saved. Try again. If the problem persists, contact us. Inspecting the element in browser, in the console i could see that they got a server error: We've got a server error... 500 But yesterday, the error changed. The server was responding SUCCESS , but a new error appeared when trying to upload any screenshot: Failed to create a screenshot for Screenshots for 4-inch iPhone 5 and iPod touch (5th

Shiny: Show buttons only after file has been uploaded

落花浮王杯 提交于 2019-12-03 02:48:30
I'm experimenting with Shiny and I love it. I built a little application where students upload a csv file and then choose a dependent variables and independent variables and then R computes a linear regression. It works fine. I have it uploaded at: http://carlosq.shinyapps.io/Regresion [You can use this file to test it if you want. "beer" is the dependent variable and the rest of the variables except "id" are the independent] Here's server.R: # server.R library(shiny) shinyServer(function(input, output) { filedata <- reactive({ infile <- input$file1 if (is.null(infile)){ return(NULL) } read

Unauthorised access exception when Uploading photo to picasa in WP7

℡╲_俬逩灬. 提交于 2019-12-02 17:50:56
问题 I have the following code which tries to upload the picture to picasa website. when I m trying to upload I m getting Unauthorised access exception. I dont know how to get the AuthToken. Here is my code . Please let me know if you have any clues. public delegate void UploadPhotoCallback(bool success, string message); public static void UploadPhoto(string albumId, string originalFileName, byte[] photo, UploadPhotoCallback callback) { string Username = "mailmugu"; string AuthToken = ""; try {

WCF Chunking / Streaming

谁说我不能喝 提交于 2019-12-02 17:19:12
I'm using WCF and want to upload a large file from the client to the server. I have investigated and decided to follow the chunking approach outlined at http://msdn.microsoft.com/en-us/library/aa717050.aspx However, this approach (just like streaming) restricts the contract to limited method signitures: [OperationContract(IsOneWay=true)] [ChunkingBehavior(ChunkingAppliesTo.InMessage)] void UploadStream(Stream stream); The sample uses the rather convenient example of uploading a file from a fixed path and saving it to a fixed path on the server. Therefore, my question is how do I pass

Unauthorised access exception when Uploading photo to picasa in WP7

ぃ、小莉子 提交于 2019-12-02 11:28:33
I have the following code which tries to upload the picture to picasa website. when I m trying to upload I m getting Unauthorised access exception. I dont know how to get the AuthToken. Here is my code . Please let me know if you have any clues. public delegate void UploadPhotoCallback(bool success, string message); public static void UploadPhoto(string albumId, string originalFileName, byte[] photo, UploadPhotoCallback callback) { string Username = "mailmugu"; string AuthToken = ""; try { var url = string.Format("http://picasaweb.google.com/data/feed/api/user/{0}/albumid/{1}", Username,

$_FILES array in PHP is empty

一笑奈何 提交于 2019-12-02 02:12:24
问题 I'm trying to get a file uploaded through a PHP script, but my $_FILES array is always empty? My $_POST data entry for the file HTML input element has the filename...Just no file is created on my local system. I've verified write access to the temp folder and explicity set it. I've checked phpinfo() to make sure file uploads are enabled, and they are. What could be preventing this? Would mod_rewrite cause anything? Thanks! 回答1: When you have the proper enctype( <form method="post" enctype=

$_FILES array in PHP is empty

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 00:51:05
I'm trying to get a file uploaded through a PHP script, but my $_FILES array is always empty? My $_POST data entry for the file HTML input element has the filename...Just no file is created on my local system. I've verified write access to the temp folder and explicity set it. I've checked phpinfo() to make sure file uploads are enabled, and they are. What could be preventing this? Would mod_rewrite cause anything? Thanks! When you have the proper enctype( <form method="post" enctype="multipart/form-data"> ), then check the errno variable in $_FILES, there are various possible causes for a