Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #16938

Re: How to validate a file in a javascript

Path csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From Cezary Tomczyk <cezary.tomczyk@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: How to validate a file in a javascript
Date Sun, 28 Oct 2012 22:38:14 +0100
Organization Aioe.org NNTP Server
Lines 17
Message-ID <k6k8kh$svj$1@speranza.aioe.org> (permalink)
References <804583d9-ac09-492c-b488-8989cb13727c@googlegroups.com>
NNTP-Posting-Host RMrsF+s1qSnxq5Qkkqjnpw.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.javascript:16938

Show key headers only | View raw


W dniu 2012-10-28 19:56, Katja pisze:
> I am trying to show the errors that can occur by uploading a file
> (file extension, size). I am using [an adapted version of Jquery Fiel
> Upload for Ruby on Rails][1]
>
> I need to validate a file (ending of a file,  size of the file)
> before uploading and as nobody has an idea [how to do it with
> JSON][2] I want to ask if somebody knows how to do it in a following
> javascript:
[...]

I wouldn't trust on file extensions. As a just a warning for user then
it is ok. Just my "5 cents".

-- 
Cezary Tomczyk
http://www.ctomczyk.pl/

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to validate a file in a javascript Katja <kate.kokatjuhha@gmail.com> - 2012-10-28 11:56 -0700
  Re: How to validate a file in jquery Denis McMahon <denismfmcmahon@gmail.com> - 2012-10-28 21:11 +0000
  Re: How to validate a file in a javascript Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-28 22:38 +0100
    Re: How to validate a file in a javascript Katja <kate.kokatjuhha@gmail.com> - 2012-10-28 23:32 -0700
      Re: How to validate a file in a javascript Denis McMahon <denismfmcmahon@gmail.com> - 2012-10-29 08:57 +0000
        Re: How to validate a file in a javascript Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-29 15:20 +0100
          Re: How to validate a file in a javascript Denis McMahon <denismfmcmahon@gmail.com> - 2012-10-29 23:22 +0000
            Re: How to validate a file in a javascript Jeff North <jnorthau@yahoo.com.au> - 2012-10-30 17:11 +1100
              Re: How to validate a file in a javascript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-11-01 21:51 +0100
        Re: How to validate a file in a javascript Dr J R Stockton <reply1244@merlyn.demon.co.uk.invalid> - 2012-10-30 19:47 +0000

csiph-web