upload

Aborting upload from a servlet to limit file size

ぐ巨炮叔叔 提交于 2019-11-29 07:36:50
I'd like to limit the size of the file that can be uploaded to an application. To achieve this, I'd like to abort the upload process from the server side when the size of the file being uploaded exceeds a limit. Is there a way to abort an upload process from the server side without waiting the HTTP request to finish? You can do something like this (using the Commons library): public class UploadFileServiceImpl extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException { response.setContentType("text/plain"); try { FileItem

Upload to Appengine Blobstore in Android

你。 提交于 2019-11-29 07:35:10
I'm working on a simple multimedia messaging app for Android, and I was trying to use Google AppEngine's BlobStore as my cloud storage for the various image, video, and audio files that will be transferred. However, all of the examples and such that I've seen for uploading to blobstore assume that I'm doing it via an HTTP form, and so I'm kind of at a loss as to what to do. I've seen several people asking the same question, but none of them seem to ever get a satisfactory answer. Can I or should I use AppEngine's blobstore in this way, and if so how do I go about doing it? Thanks, SO.

Uploading multiple files in Django through one form field

我怕爱的太早我们不能终老 提交于 2019-11-29 07:09:20
Is there any custom widget (or a special magic way) to upload multiple files (or a whole folder!) through one form field? I have tried this multifile widget but it uses many simple FileFileds. https://github.com/tstone/django-uploadify is a reusable Django app that integrates http://uploadify.com . From Uploadify's website: Uploadify is a jQuery plugin that integrates a fully-customizable multiple file upload utility on your website. It uses a mixture of Javascript, ActionScript, and any server-side language to dynamically create an instance over any DOM element on a page. TaoJoannes HTML 5

C# - I cannot reference HttpPostedFileBase

流过昼夜 提交于 2019-11-29 06:18:27
I am using MVC .NET in a distributed environment with CSLA and I can reference HttpPostedFileBase from one of my web layers (eg Website.MVC), but I cannot reference HttpPostedFileBase from a separate layer (lets call it OtherLayer.Web). Any idea on what I need to do to be able to call HttpPostedFileBase ? I am able to use HttpPostedFile in both layers - should I just use this instead? The assembly references are basically the same - in Website.MVC I have: namespace Website.Mvc.Controllers { using System; using System.Collections; using System.Collections.Generic; using System.Web.Mvc; using

ASP MVC FIle Upload HttpPostedFileBase is Null

梦想与她 提交于 2019-11-29 06:01:30
In my controller I have, because I wanted to be able to fill out some details about the video and actually upload it, the Video class doesn't need the actual video because it's going to be passed to another web service. public class VideoUploadModel { public HttpPostedFileBase vid { get; set; } public Video videoModel { get; set; } } // // POST: /Video/Create [HttpPost] public ActionResult Create(VideoUploadModel VM) { if (ModelState.IsValid) { db.Videos.AddObject(VM.videoModel); db.SaveChanges(); return RedirectToAction("Index"); } ViewBag.UserId = new SelectList(db.DBUsers, "Id", "FName", VM

Facebook graph API & PHP SDK questions

无人久伴 提交于 2019-11-29 05:21:54
I have a couple of problems using facebook graph api. 1). When i try to upload a photo i get the following error "(#324) Requires upload file". $attachement = array( 'access_token'=> (...)', 'name' => 'uploaded foto', 'source' => 'C:\Documents and Settings\Username\Desktop\1.jpg' ); $fb_foto = $fb->api('me/photos','POST',$attachement); I am sure that source is correct. I have tried with a photo from the internet and not from mu local PC also. 2). How can i delete an object from facebook?. (a wall message for example). I have tried this: $fb->api('/post_id','POST',array('method'=> 'delete'));

php uploading large files

痞子三分冷 提交于 2019-11-29 05:19:09
I'm stuck here with file uploading problem. I've searched for answers but found only "increasing post_max_size and upload_max_filesize" suggestion and that doesn't work for me. I can't get large files uploaded(approx. around 150mb+), the following are my php.ini settings and my environments php.ini - max_input_time 300 - max_execution_time 600 - memory_limit 1024M - upload_max_filesize 1512M - post_max_size 2048M environments - Webserver: XAMPP - PHPFramwork: CodeIgniter I’ve also tried many other php.ini configurations. The file uploading class that I’ve built received posted file data from

how to upload video on twitter using twitvid in iphone sdk?

拈花ヽ惹草 提交于 2019-11-29 05:18:01
I am trying to upload video to twitter using twitvid i got sample code from TwitVid when i run the sample code and i tried to upload a video at that time it shows me uploading process in UIAlertView but after completion of uploading it gives me error Upload Failed i found that in this sample code TwitVid_APP_ID is missing but i tried a lot to get TwitVid_APP_ID from TwitVid but i didn't get a way to get TwitVid_APP_ID . I have also gone through the document of TwitVid they have mentioned that if you want to get TwitVid_APP_ID than mail at mailto:support@twitvid.com .i also mailed but its also

ERROR ITMS-9000: “Missing Code Signing Entitlements. No entitlements found in bundle” - How to change app ID name

烈酒焚心 提交于 2019-11-29 05:02:19
I recently re-signed my app with another certificate (I do not have the source code, so I had to do this to upload it to the App Store). When I tried to upload it, I got: ERROR ITMS-9000: "Missing Code Signing Entitlements. No entitlements found in bundle 'xxx.xxxxxx.xxxxxx' for executable 'Payload/xxxxxxx.app/Xxxxxxxx'."" at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage)". I read in other posts that my bundle ID has to match my new App ID, from the new certificate I just signed. I need direct instructions on how change the bundle ID in the IPA file! Like, real step-by-step

PHP upload image

自闭症网瘾萝莉.ら 提交于 2019-11-29 04:42:10
Alright I have way to much time invested in this. I am new to PHP programming and trying to grasp the basics, but I am a little lost as of last night I was able to get a PHP form to upload basic data like a name address and stuff to my (MySQL) server. But today I said let's do the next step which would be an image to the server. I have watched 3 videos on YouTube probably a 100 times just recoping code and trying it in so many different ways. http://www.youtube.com/watch?v=CxY3FR9doHI http://www.youtube.com/watch?v=vFZfJZ_WNC4&feature=relmfu and still haven't been able to get it. But long