-
Notifications
You must be signed in to change notification settings - Fork 32
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
Rewriting media upload requests #63
Conversation
… a different domain
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
@adamziel, something like this? |
This would be a great feature for the Sandbox plugin. Instead of zipping the uploads content and sending it to Playground, we could redirect media requests back to the original site if they aren't found in Playground sites file system. |
It would be nice if this blueprint would load an image from a remote server (this Git repo) on the home page. |
Oh I really like the idea behind this Blueprint! Let's get it in, thank you for contributing :) |
I had a situation where I wanted playgrounds to mirror a heavy production website with media upload attachments. We have a similar pattern in-house for local dev environments where we reverse proxying image requests to the prod domain.
The following is a basic example of how I've dealt with the problem by intercepting and redirecting requests for
/wp-content/uploads*
requests.