zofe / rapyd-laravel

deprecated rewritten in rapyd-livewire
MIT License
866 stars 297 forks source link

filename for files and images #52

Open larylinz opened 10 years ago

larylinz commented 10 years ago

It seems, there is a function to specify a certain filename for images/files.

within file.php: ... $filename = ($this->filename!='') ? $this->filename : $this->file->getClientOriginalName(); ...

how to use this in dataform/dataedit?

zofe commented 10 years ago
->move('uploads/images/', 'customname.jpg');

filename also support blade syntax.

however there is a lack of functionality: for example preserve original "extension" but override name.
Leave this issue open.

mattglover11 commented 9 years ago

Do you have a feature description for this? I'm about to do some work with files so I might as well cover this enhancement.

zofe commented 9 years ago

see also https://github.com/zofe/rapyd-laravel/issues/136
basically I think that in filename parameter we should omit the extension or we should overwrite it with the one of "clientoriginalname"