We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
first of all: Thank you for you great work on that image uploader!
When uploading a file it gets a random name even when using setName() function.
My current workaround is to uncomment line 405: $this->setName() call inside constraintValidator()
$this->setName() call inside constraintValidator()
because setName() seems to be called twice then wich seems to load the function again with an empty name parameter. I Also had to use just this line
$this->name = filter_var($isNameProvided, FILTER_SANITIZE_FULL_SPECIAL_CHARS);
instead of :
if ($isNameProvided) { $this->name = $isNameProvided; }else{ $this->name = uniqid('', true) . '_' . str_shuffle(implode(range('e', 'q'))); } return $this;
Now the name is set but I think you will find a better solution for that.
Kind regards.
EDIT: Calling setName function in constraintValidator-funktion like this (with name parameter): $this->setName($this->name);
$this->setName($this->name);
seems to work aswell.
The text was updated successfully, but these errors were encountered:
fix image name setter not workin #141
5a65c99
thanks, sorry for taking a long time
Sorry, something went wrong.
Merge pull request #145 from samayo/bugfix/setName-not-setting-image-…
d298067
…name fix image name setter not workin #141
No branches or pull requests
Hello,
first of all: Thank you for you great work on that image uploader!
When uploading a file it gets a random name even when using setName() function.
My current workaround is to uncomment line 405:
$this->setName() call inside constraintValidator()
because setName() seems to be called twice then wich seems to load the function again with an empty name parameter.
I Also had to use just this line
$this->name = filter_var($isNameProvided, FILTER_SANITIZE_FULL_SPECIAL_CHARS);
instead of :
Now the name is set but I think you will find a better solution for that.
Kind regards.
EDIT:
Calling setName function in constraintValidator-funktion like this (with name parameter):
$this->setName($this->name);
seems to work aswell.
The text was updated successfully, but these errors were encountered: