Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5456E5EC for ; Sun, 3 Feb 2013 20:28:31 +0000 (UTC) Received: (qmail 15076 invoked by uid 500); 3 Feb 2013 20:28:30 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 14780 invoked by uid 500); 3 Feb 2013 20:28:30 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Delivered-To: moderator for user@commons.apache.org Received: (qmail 8295 invoked by uid 99); 3 Feb 2013 16:23:54 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of arvind.viswanathan@gmail.com designates 209.85.215.175 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=Gw2Nc8ZvBpOwZC1Z5v1grjPUu3dfteud8ErS2WUbXOI=; b=dfeuLr05PKwVl42iiVaQJm9cbIg5YpQJO5x7JpGNaPU9TcW8386wwvI3D0fhryhTMA 4DQPmXc9kD7/5xfSUm+SaIkq9EIaTGqb0LndrLfT6bg632t7YvhdsM8+L88TUMXWQEON +Q9kSuSZ8Gzu8qZscGgKt/PxPkF0DB+HINgvym0IgcdZO/KhbDj4GAEUSNQTsNOZxS6o fS2RvhdSC3xMsJyCfpso00UYBjbPjkZYBvvOcHlkcQMqgVq5xJwMiY4qNCyPdn8p3FZe SN6ZraFcF3zAttC1R8RMVgxv+RsRFOqXualXxSM3W67ArsCeIG6VdsFNJdg3RIMf+xo1 7SBw== MIME-Version: 1.0 X-Received: by 10.14.219.6 with SMTP id l6mr21030454eep.23.1359908605749; Sun, 03 Feb 2013 08:23:25 -0800 (PST) Date: Sun, 3 Feb 2013 08:23:25 -0800 Message-ID: Subject: [fileupload]java.io.fileNotFoundException : /home/abc/xyz.jpg (Permission denied) From: arvind viswanathan To: "user@commons.apache.org" Content-Type: multipart/alternative; boundary=047d7b603c145f69a104d4d46508 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b603c145f69a104d4d46508 Content-Type: text/plain; charset=ISO-8859-1 Hi, I am running tomcat7 instance in amazon linux. I am encountering the above message when using file upload in my application deployed in it. I get the following message. java.io.fileNotFoundException : /home/abc/xyz.jpg (Permission denied) when trying to save the image in /home/abc/ here are some of the params that I use in fileuploader. * * *private* *int* maxFileSize = 1024 * 1024 * 5; *private* *int* maxMemSize = 10 * 1024 *1024; filePath = "/home/ec2-user/"; Would appreciate if some one could help me out. Thanks Arvind --047d7b603c145f69a104d4d46508--