-
Notifications
You must be signed in to change notification settings - Fork 63
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
Video file does not get deleted from server in stateless mode #418
Comments
hi alimuzzaman, on the issue of the "video not being deleted from the server on stateless mode" when will the update be released that has this issue solved ? |
Hi @dewlonse, For the time being, you can use https://github.com/wpCloud/wp-stateless/releases/tag/2.3.2-RC.2 |
thks for the update. But there is still an issue. the issue of the "video not being deleted from the server on stateless mode" was solved but only when you upload a video from the backend admin "media Library" that the video gets deleted from the server. When you upload a video through the frontend using "contact form 7", the video does not delete from the server. But if you upload image file through the frontend using contact form 7, it will delete from the server. You need to please solve this issue. |
if i remove the plugin and upload the video file from the frontend, it goes to the server and shows no errors. |
|
Hi @dewlonse
Yes, we have a hook for it.
Sorry, it is by design.
Please create a issue. We will look into it. |
Hi @dewlonse, |
Please send me the code snippet that will synchronize video files on the fly , so that video files are automatically synchronized when they are uploaded
Sent from Yahoo Mail on Android
On Mon, 30 Dec 2019 at 5:21 pm, Md. Alimuzzaman Alim<notifications@github.com> wrote:
Hi @dewlonse
is there is code snippet that can synchronize video files on the fly , that is video files are automatically synchronized when they are uploaded.
Yes, we have a filter.
I see that for "Stateless mode" setting the "Synchronize non-images files between Google Storage and local server" when you run the process, files that are already deleted from the server still undergo the synchronization process. is possible to prevent a file from being re-synchronized.
Sorry, it is by design.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@dewlonse
|
We have to identify what is creating the problem first. Then we can create a solution. Here is the code you can use to sync a single file:
|
I use the vidorev theme it has a frontend upload form. https://themeforest.net/item/vidorev-video-wordpress-theme/21798615 |
This is the upload form, http://demo.beeteam368.com/vidorev/submit-your-video-2/ |
Can you help us to replicate the issue on our server? Please send me an mail at alim@udx.io, I will send you details. |
the code snippet did not solve the issue. I used the code snippet plugin to paste the code. |
This is may have to with mime. Wp-stateless does allow mp4 upload from frontend. |
The problem is that VidoRev Extensions don't generate attachment metadata for a video as it does for an image attachment. WP Stateless works on In
after @dewlonse please contact VidoRev if they add those lines for video attachment then the image will be automatically synced. I will also try to contact them. |
How can I add it as a code snippet so that I can just add it in the code snippets plugin
Sent from Yahoo Mail on Android
On Wed, 1 Jan 2020 at 7:17 pm, Md. Alimuzzaman Alim<notifications@github.com> wrote:
The problem is that VidoRev Extensions don't generate attachment metadata for a video as it does for an image attachment.
WP Stateless works on wp_update_attachment_metadata filter wich is not fired for video files.
In vidorev_cf7_save_posted_data and vidorev_front_end_edit_post_data function adding the following code
$attach_data = wp_generate_attachment_metadata( $attach_id, $movefile['file'] );
wp_update_attachment_metadata( $attach_id, $attach_data );
after $attach_id = wp_insert_attachment( $attachment, $movefile['file'], $newPostID ); solves the problem.
@dewlonse please contact VidoRev if they add those lines for video attachment then the image will be automatically synced.
I will also try to contact them.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
It can't be added as a code snippet. You can directly edit their plugin though. I will add a patch to our plugin for the time being. |
Show me the file in the vidorev plugin where to edit and add the code.
Also the patch you want to add to your pluginWill you add it now and send it or it will be in the next update
Sent from Yahoo Mail on Android
On Wed, 1 Jan 2020 at 7:33 pm, Md. Alimuzzaman Alim<notifications@github.com> wrote:
It can't be added as a code snippet. You can directly edit their plugin though.
I will add a patch to our plugin for the time being.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@dewlonse You can get the patch from here |
1.there is some issues with wp-stateless when synchronizing non-media library files. Files that are not media library files both video and image files, do not get deleted from the local server in stateless mode even when the url is changed to google cloud storage url, this cause file. error |
hi, I added the code to the vidorev extensions as suggested but it did not solve the issue. It is the wp-stateless patch that solve the issue because you made it compatible with the vidorev extension plugin. therefore my theme author does not need to add the codes as you suggested. |
thank you for solving this issue. |
1.there is some issues with wp-stateless when synchronizing non-media library files. Files that are not media library files both video and image files, do not get deleted from the local server in stateless mode even when the url is changed to google cloud storage url, this cause file. error
2. is there a code snipet that can prevent auto synchronizing of non-media files (video and image) and also prevent changing there url to google cloud storage url.
Name: Charles AhanekuMobile: +234-08103279304, +234-8155425704
On Thursday, January 2, 2020, 6:45:35 PM GMT+1, Md. Alimuzzaman Alim <notifications@github.com> wrote:
Closed #418.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Video file does not get deleted from server in stateless mode #418
@dewlonse Please create a new issue if you have further questions. |
https://wordpress.org/support/topic/media-not-synced-to-google-cloud-storage/#post-12172313
The text was updated successfully, but these errors were encountered: