Login
Username

Password



Lost Password?

Register now!
Referer
No referer

Guests cannot post in this forum

You cannot start a new topic in this forum

Action
list-tree Tree order sort-down Newest first previous Previous topic next Next topic

なし CCENTER - Files type

Hi Nobuhiro

Is it possible to test file type in a form?

eg. PDF file

If the file is not a PDF => no form validation
message: "This file type is not allowed"

@+
Z

なし Re: CCENTER - Files type

Ccenter module can not really file type(signature) checking, right now.

The check file signature that need to add code. And need determine form options semantics, also.

Will be following?
Attachment,file,accept_ext=jpg|gif|pdf,accept_type=image/jpeg|image/gif|application/pdf

This is not yet implement, just a plan.
--
Nobuhiro YASUTOMI (MySite Users Webmaster)

なし Re: CCENTER - Files type

I added upload file checking function in ccenter 0.97.

for example,
attachment,file,accept_type=image/*,application/pdf

More detail see about ccenter admin page section "Option variables".

Please try it.
--
Nobuhiro YASUTOMI (MySite Users Webmaster)

なし Re: CCENTER - Files type

hi' Nobu

Thanks for security patch and cool improvment.

Quote:
ATTACHMENT,file,accept_ext=pdf|odt|doc|docx,accept_type=application/pdf|application/odt|application/doc|application/docx
> extension limitation works fine :)

list-tree Tree order sort-down Newest first previous Previous topic next Next topic



Advanced search
© 2008 MySite Web Service