-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
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
What's the easiest way to update an existing media ? #18
Comments
Hi Nicholas, What do you mean by update? Media is just an eloquent model, so you can (On vacation so I might be slow to reply) On Sep 1, 2016 4:19 PM, "Nicolas Binet" notifications@github.com wrote:
|
Let me know if I'm wrong, but I'm using MediaUploader::fromSource to upload and create a new Media. |
Hi Nicolas, What exactly has changed between the file on disk and the data stored in For the most part, the library considers media files to be constant once You can also simply delete and reimport the media record. Alternatively, the Finally, adding a proper Hope this helps. On Sep 3, 2016 12:56 PM, "Nicolas Binet" notifications@github.com wrote:
|
Hi frasmage, Thanks for your extensive answer. In my case, I'm trying to create a mediamanager the "wordpress way". Have a centralized repositories for medias, and associate them along the way to different models. I hope this clarifies my need. Nicolas |
Hi Nicolas, OK, I see what you mean. The MediaUploader class wouldn't be able to do In the meantime, you could use the uploader to place the file in a temp On Sep 7, 2016 7:42 AM, "Nicolas Binet" notifications@github.com wrote:
|
Hi @nicolasbinet, this is now implemented in version 2.0, see the docs for instructions on this feature. |
I'm trying to figure out a way to update a saved media.
Relations can be updated, but not the base file.
Am-I right ?
The text was updated successfully, but these errors were encountered: