Title: Radek Matej's Replies | WordPress.org

---

# Radek Matej

  [  ](https://wordpress.org/support/users/nikdo/)

 *   [Profile](https://wordpress.org/support/users/nikdo/)
 *   [Topics Started](https://wordpress.org/support/users/nikdo/topics/)
 *   [Replies Created](https://wordpress.org/support/users/nikdo/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/nikdo/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/nikdo/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/nikdo/engagements/)
 *   [Favorites](https://wordpress.org/support/users/nikdo/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 39 total)

1 [2](https://wordpress.org/support/users/nikdo/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/nikdo/replies/page/3/?output_format=md) 
[→](https://wordpress.org/support/users/nikdo/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[React Webcam] ReactCam with WordPress 5.5](https://wordpress.org/support/topic/reactcam-with-wordpress-5-5/)
 *  Plugin Author [Radek Matej](https://wordpress.org/support/users/nikdo/)
 * (@nikdo)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/reactcam-with-wordpress-5-5/#post-13331833)
 * I’m glad it worked after the update. 👍
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[React Webcam] Only manually refreshing works](https://wordpress.org/support/topic/only-manually-refreshing-works/)
 *  Plugin Author [Radek Matej](https://wordpress.org/support/users/nikdo/)
 * (@nikdo)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/only-manually-refreshing-works/#post-13286077)
 * Hi,
 * open Chrome DevTools as I advised and check for errors. Let me know if you find
   something there.
 * Radek
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[React Webcam] Only manually refreshing works](https://wordpress.org/support/topic/only-manually-refreshing-works/)
 *  Plugin Author [Radek Matej](https://wordpress.org/support/users/nikdo/)
 * (@nikdo)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/only-manually-refreshing-works/#post-12898010)
 * Hi,
 * I’m not sure why it does not work. Files are timestamped and the location is 
   correct. The only cause I can think of is a conflicting JS plugin with a different
   React library version.
 * Try opening [Chrome DevTools](https://developers.google.com/web/tools/chrome-devtools)
   and check if there are any errors logged in the console for your WordPress website.
 * Radek
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[React Webcam] Gutenberg will break react-webcam](https://wordpress.org/support/topic/gutenberg-will-break-react-webcam/)
 *  Plugin Author [Radek Matej](https://wordpress.org/support/users/nikdo/)
 * (@nikdo)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/gutenberg-will-break-react-webcam/#post-10897959)
 * I’m sorry I wasn’t much an help. I should have updated the plugin to newer React
   version months ago, but I had other priorities.
 * I’m glad the problem was resolved after all.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[React Webcam] FTP upload location](https://wordpress.org/support/topic/ftp-upload-location/)
 *  Plugin Author [Radek Matej](https://wordpress.org/support/users/nikdo/)
 * (@nikdo)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/ftp-upload-location/#post-10897944)
 * Thanks for sharing your solution.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[React Webcam] FTP upload location](https://wordpress.org/support/topic/ftp-upload-location/)
 *  Plugin Author [Radek Matej](https://wordpress.org/support/users/nikdo/)
 * (@nikdo)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/ftp-upload-location/#post-10888454)
 * Thanks for the kind words about the plugin. I don’t want any money, this is open
   source and I’m not able to provide any extensive support.
 * The problem is not in React but in the PHP code that is searching for image files.
   Currently, it cannot search subdirectories:
 *     ```
       foreach (array_filter(glob($webcam_dir . '*'), 'is_file') as $path) {
         $last_filename = basename($path);
       }
       return $last_filename;
       ```
   
 * But you can modify the above code right in the installed plugin so that [it searches recursively](https://stackoverflow.com/a/17161106/5763764).
 * I can’t help you more with that, sorry. If you are not capable of changing it
   on your own, get help from some PHP developer.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[React Webcam] Direct Plugin to different Folder](https://wordpress.org/support/topic/direct-plugin-to-different-folder/)
 *  Plugin Author [Radek Matej](https://wordpress.org/support/users/nikdo/)
 * (@nikdo)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/direct-plugin-to-different-folder/#post-9768925)
 * The reason why there is no WP admin for this plugin is to keep it as simple as
   possible. First, webcam that cannot upload images elsewhere is pretty lame. Second,
   operating within `wp-content/uploads` directory is a good practice when dealing
   with files in WordPress plugin.
 * Thanks for the words of praise. 🙂 It’s great to hear that this simple plugin
   actually helps somebody.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[React Webcam] Direct Plugin to different Folder](https://wordpress.org/support/topic/direct-plugin-to-different-folder/)
 *  Plugin Author [Radek Matej](https://wordpress.org/support/users/nikdo/)
 * (@nikdo)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/direct-plugin-to-different-folder/#post-9760619)
 * Hi Haukur,
 * Having webcam images on another website is not possible with this plugin. It 
   is a WordPress plugin, it operates only with files on filesystem available to
   WordPress.
 * In your case, I recommend finding a hosting, that provides sftp or ssh to securely
   sync images with a webcam or another server.
 * Radek
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[React Webcam] Direct Plugin to different Folder](https://wordpress.org/support/topic/direct-plugin-to-different-folder/)
 *  Plugin Author [Radek Matej](https://wordpress.org/support/users/nikdo/)
 * (@nikdo)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/direct-plugin-to-different-folder/#post-9745084)
 * Hi,
 * your tweak couldn’t really work because `$upoad_dir` should really contain `wp_upload_dir()`.
   On one of the next lines, I’m getting `baseurl` from the array returned by `wp_upload_dir`
   function. That’s probably the reason for the strange character.
 * Why have you decided not to put your webcam images to the `/wp-content/uploads/
   webcam/` directory? What’s the motivation? If there is a solid motivation, you
   need to further modify the source code.
 * Radek
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[React Webcam] use as widget](https://wordpress.org/support/topic/use-as-widget/)
 *  Plugin Author [Radek Matej](https://wordpress.org/support/users/nikdo/)
 * (@nikdo)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/use-as-widget/#post-9171743)
 * Hi Alex,
 * Thank you for the feedback.
 * I have never experimented with shortcodes with widgets but supposedly [there is a simple way how to make it work](http://www.wpbeginner.com/wp-tutorials/how-to-use-shortcodes-in-your-wordpress-sidebar-widgets/).
 * Radek
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[React Webcam] Direct Plugin to different Folder](https://wordpress.org/support/topic/direct-plugin-to-different-folder/)
 *  Plugin Author [Radek Matej](https://wordpress.org/support/users/nikdo/)
 * (@nikdo)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/direct-plugin-to-different-folder/#post-9130544)
 * Hi Thomas,
 * I don’t have time to fully investigate your code and suggest a proper solution.
   But after a quick review, it seems that in `get_last_filename` you use URL instead
   of filesystem path so `glob` function that operates with files cannot work.
 * Radek
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[React Webcam] Clickable Larger Size Image?](https://wordpress.org/support/topic/clickable-larger-size-image/)
 *  Plugin Author [Radek Matej](https://wordpress.org/support/users/nikdo/)
 * (@nikdo)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/clickable-larger-size-image/#post-9089287)
 * Hi Mat,
 * This is unfortunately not easy. To achieve that you need to modify plugin code–
   change markup in both `react-webcam.php` and `ActualImage.js` files. Or customize
   the lightbox plugin to use the same image URL instead of the link.
 * Radek
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[React Webcam] How do I change the dimensions of the image?](https://wordpress.org/support/topic/how-do-i-change-the-dimensions-of-the-image/)
 *  Plugin Author [Radek Matej](https://wordpress.org/support/users/nikdo/)
 * (@nikdo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/how-do-i-change-the-dimensions-of-the-image/#post-9040997)
 * I’m afraid I cannot help you with that. Your theme is probably broken in some
   way and as the result styling doesn’t work in IE. Ask someone with front-end 
   development skills to investigate.
 * The plugin just adds an image to the page. That works in all browsers for sure.
   If image is not displayed properly, WordPress theme is to blame.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[React Webcam] How do I change the dimensions of the image?](https://wordpress.org/support/topic/how-do-i-change-the-dimensions-of-the-image/)
 *  Plugin Author [Radek Matej](https://wordpress.org/support/users/nikdo/)
 * (@nikdo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/how-do-i-change-the-dimensions-of-the-image/#post-9040382)
 * Hi Chanta,
 * Webcam image is not styled by default. That is WordPress theme responsibility.
   To change appearance, change the CSS styles.
 * For example this sets image width:
 *     ```
       .react-webcam img {
         width: 400px;
       }
       ```
   
 * Radek
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[React Webcam] Solves a problem](https://wordpress.org/support/topic/solves-a-problem-3/)
 *  Plugin Author [Radek Matej](https://wordpress.org/support/users/nikdo/)
 * (@nikdo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/solves-a-problem-3/#post-9000627)
 * Thank you for the positive feedback! I’m glad it helped.

Viewing 15 replies - 1 through 15 (of 39 total)

1 [2](https://wordpress.org/support/users/nikdo/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/nikdo/replies/page/3/?output_format=md) 
[→](https://wordpress.org/support/users/nikdo/replies/page/2/?output_format=md)