ios Upload Image and Text using HTTP POST

Here’s code from my app to post an image to our web server: // Dictionary that holds post parameters. You can set your post parameters that your server accepts or programmed to accept. NSMutableDictionary* _params = [[NSMutableDictionary alloc] init]; [_params setObject:[NSString stringWithString:@”1.0″] forKey:[NSString stringWithString:@”ver”]]; [_params setObject:[NSString stringWithString:@”en”] forKey:[NSString stringWithString:@”lan”]]; [_params setObject:[NSString stringWithFormat:@”%d”, userId] forKey:[NSString stringWithString:@”userId”]]; … Read more

Upload multiple image using AJAX, PHP and jQuery

Try utilizing json to upload , process file object html <div id=”drop” class=”drop-area ui-widget-header”> <div class=”drop-area-label”>Drop image here</div> </div> <br /> <form id=”upload”> <input type=”file” name=”file” id=”file” multiple=”true” accepts=”image/*” /> <ul class=”gallery-image-list” id=”uploads”> <!– The file uploads will be shown here –> </ul> </form> <div id=”listTable”></div> css #uploads { display:block; position:relative; } #uploads li { … Read more