Changeset 36108

Show
Ignore:
Timestamp:
12/09/09 23:02:33 (4 years ago)
Author:
Seacolor
Message:

List部とTooltipの文章に","が不自然に入っていた問題を修正
画像が投稿できない不具合の修正

Location:
platform/air/Whony
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • platform/air/Whony/WasserClient-app.xml

    r35391 r36108  
    22<application xmlns="http://ns.adobe.com/air/application/1.5"> 
    33    <id>com.seacolorswind.wasser.Whony</id> 
    4     <version>20090914b</version> 
     4    <version>20091209</version> 
    55    <filename>whony_trunk</filename> 
    66    <initialWindow> 
  • platform/air/Whony/src/model/TimeLineUtil.as

    r35680 r36108  
    148148                        } 
    149149 
    150                         return htmlStrings.join(); 
     150                        return htmlStrings.join(""); 
    151151                } 
    152152                /** @private */ 
  • platform/air/Whony/src/net/APIPostThread.as

    r35681 r36108  
    3333        import flash.filesystem.FileStream; 
    3434        import flash.net.URLRequest; 
     35        import flash.net.URLRequestHeader; 
    3536        import org.httpclient.http.multipart.Part; 
    3637        import org.httpclient.http.Post; 
     
    8081                                var parts:Array = new Array(); 
    8182                                for (key in param) { 
    82                                         if (key != "image") { 
    83                                                 parts.push(new Part(key, param[key])); 
    84                                         } else { 
    85 /*                                              var fileStream:FileStream = new FileStream(); 
    86                                                 fileStream.open(File(param[key]), FileMode.READ); 
     83                                        if (key == "image") { 
     84                                                var image:File = File(param.image); 
     85                                                var fileStream:FileStream = new FileStream(); 
     86                                                fileStream.open(image, FileMode.READ); 
    8787                                                var imageBytes:ByteArray = new ByteArray(); 
    8888                                                fileStream.readBytes(imageBytes); 
    89                                                 parts.push(new Part("file", imageBytes, "image/png", [ { name:"filename", value:"img.png" } ], "binary")); 
    90 */                                      } 
     89                                                imageBytes.position = 0; 
     90                                                parts.push(new Part("image", imageBytes, "application/octet-stream", [ { name:"filename", value:image.name } ], "binary")); 
     91                                        } else { 
     92                                                parts.push(new Part(key, param[key])); 
     93                                        } 
    9194                                } 
    9295                                _request.setMultipart(new Multipart(parts));