Как проверить размер входного файла с помощью jQuery?

Этот способ будет работать наверняка, я надеюсь, что это поможет:

CREATE TABLE fruits(
   id SERIAL PRIMARY KEY,
   name VARCHAR NOT NULL
);

INSERT INTO fruits(id,name) VALUES(DEFAULT,'apple');

or

INSERT INTO fruits VALUES(DEFAULT,'apple');

Вы можете проверить эту информацию в следующей ссылке: http://www.postgresqltutorial.com/postgresql -serial /

127
задан Sharikov Vladislav 17 May 2014 в 23:33
поделиться

1 ответ

You can do this type of checking with Flash or Silverlight but not Javascript. The javascript sandbox does not allow access to the file system. The size check would need to be done server side after it has been uploaded.

If you want to go the Silverlight/Flash route, you could check that if they are not installed to default to a regular file upload handler that uses the normal controls. This way, if the do have Silverlight/Flash installed their experience will be a bit more rich.

1
ответ дан 24 November 2019 в 00:42
поделиться
Другие вопросы по тегам:

Похожие вопросы: