Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function preUpload()
- {
- if (null !== $this->file) {
- // do whatever you want to generate a unique name
- $this->path = uniqid().'.'.$this->file->guessExtension();
- }
- }
- myproject
- app
- src
- vendor
- web <-- your domain points to this folder
- save_files
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement