1

I writing a function in my form that require user to upload a file, but doesn't necessary have to save it filename in to my database as the program can automatic detect the file.

I try to use this piece of code:

$this->setWidget('filename', new sfWidgetFormInputFile());

But this required to have a column in database for saving file.

Is there anyway to not use database but include a upload form in symfony 1.4?

2 Answers 2

1

did you tried to override your updateFilenameColumn method in order to return nothing?

Sign up to request clarification or add additional context in comments.

Comments

0

You don't need a column in your database, but you need a validator in order to complete your form, sfValidatorFile for exemple.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.