Open julienduthoit opened 11 years ago
Hmmm, I can see that you're on Windows. The bundle is calling out to rsync to synchronize the files. Possibly rsync is not in the PATH when Apache runs a shell with system().
Someone has recently submitted code to sync the files with built-in Symfony functionality. I've been slow to accept it because rsync is probably much faster, but take a look at the pull requests on the bundle... I should accept that code and make it something that is turned on by an option.
On Mon, Nov 19, 2012 at 6:34 AM, Julien Duthoit notifications@github.comwrote:
I'm trying to implement your bundle on one of my application, It seems to work until the synchronization of the tmp and definitive folder. I have my file in something like /tmp/attachments/198359516(/originals) but on validation, I obtain : at FileManager ->syncFiles (array('from_folder' => '/tmp/attachments/1210185416', 'to_folder' => '/attachments/1474', 'remove_from_folder' => true, 'create_to_folder' => true)) in C:\wamp\www\project\vendor\punkave\symfony2-file-uploader-bundle\PunkAve\FileUploaderBundle\Services\FileUploader.php at line 47
The folder is however created. Do you know if it is something that could come from my configuration?
Thanks for your bundle. It took me some time to understand it but it's really a nice and clean tool.
— Reply to this email directly or view it on GitHubhttps://github.com/punkave/symfony2-file-uploader-bundle/issues/15.
Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com
Unfortunately, I'm indeed using Windows. An option to deal with this choice would be nice if it could solve this kind of problems. My production server runs with Apache, I would do a test on it to see. Maybe it would be more interesting to solve this rsync problem with Apache on Wamp than change to built-in Symfony functionality, especially if it means an performance hit like you mentionned.
BTW, other problem I'm dealing with... Even if it's certainly non related. Did the default template offers a design like the BlueImp Demo Page (http://blueimp.github.com/jQuery-File-Upload/) ? I don't see files added to the div when I choose one with the input button or if I use drag and drop (it works nevertheless as the files are added in tmp folder). But if I reload the pages, I can see them because of the existing files array. (but the design isn't the same). Do I have to add the css of BlueImp or something?
Thanks
I suggest you try the pull request and report back on whether it makes the bundle work properly for Windows users. If so I will hurry up and accept it (:
On Mon, Nov 19, 2012 at 9:11 AM, Julien Duthoit notifications@github.comwrote:
Unfortunately, I'm indeed using Windows. An option to deal with this choice would be nice if it could solve this kind of problems. My production server runs with Apache, I would do a test on it to see. Maybe it would be more interesting to solve this rsync problem with Apache on Wamp than change to built-in Symfony functionality, especially if it means an performance hit like you mentionned.
BTW, other problem I'm dealing with... Even if it's certainly non related. Did the default template offers a design like the BlueImp Demo Page ( http://blueimp.github.com/jQuery-File-Upload/) ? I don't see files added to the div when I choose one with the input button or if I use drag and drop (it works nevertheless as the files are added in tmp folder). But if I reload the pages, I can see them because of the existing files array. (but the design isn't the same). Do I have to add the css of BlueImp or something?
Thanks
— Reply to this email directly or view it on GitHubhttps://github.com/punkave/symfony2-file-uploader-bundle/issues/15#issuecomment-10514619.
Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com
Hmmm, after images arrive you should see them, yes. At least, I do.
On Mon, Nov 19, 2012 at 9:27 AM, Tom Boutell tom@punkave.com wrote:
I suggest you try the pull request and report back on whether it makes the bundle work properly for Windows users. If so I will hurry up and accept it (:
On Mon, Nov 19, 2012 at 9:11 AM, Julien Duthoit notifications@github.comwrote:
Unfortunately, I'm indeed using Windows. An option to deal with this choice would be nice if it could solve this kind of problems. My production server runs with Apache, I would do a test on it to see. Maybe it would be more interesting to solve this rsync problem with Apache on Wamp than change to built-in Symfony functionality, especially if it means an performance hit like you mentionned.
BTW, other problem I'm dealing with... Even if it's certainly non related. Did the default template offers a design like the BlueImp Demo Page (http://blueimp.github.com/jQuery-File-Upload/) ? I don't see files added to the div when I choose one with the input button or if I use drag and drop (it works nevertheless as the files are added in tmp folder). But if I reload the pages, I can see them because of the existing files array. (but the design isn't the same). Do I have to add the css of BlueImp or something?
Thanks
— Reply to this email directly or view it on GitHubhttps://github.com/punkave/symfony2-file-uploader-bundle/issues/15#issuecomment-10514619.
Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com
Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com
With no changes except for the existing files that seems to have some problems with path too : I obtain this for the same function syncfiles :
RecursiveDirectoryIterator::__construct(C:/wamp/www/project/app/../web/uploads\/attachments/1472,C:/wamp/www/project/app/../web/uploads\/attachments/1472):
Working with paths on Windows is a pain...
True. I'm not really set up to test this in a Windows environment, but I'll accept pull requests that make it happy on Windows.
On Mon, Nov 19, 2012 at 10:50 AM, Julien Duthoit notifications@github.comwrote:
With no changes except for the existing files that seems to have some problems with path too : I obtain this for the same function syncfiles :
RecursiveDirectoryIterator::__construct(C:/wamp/www/project/app/../web/uploads\/attachments/1472,C:/wamp/www/project/app/../web/uploads\/attachments/1472):
Working with paths on Windows is a pain...
— Reply to this email directly or view it on GitHubhttps://github.com/punkave/symfony2-file-uploader-bundle/issues/15#issuecomment-10518474.
Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com
Unfortunately, I've not enough time to make it work on my work project for the moment, especially as it is working on server side. But as soon as I will have personnal time to test it, I keep you updated if no one makes it by this time. The other pull request generates other path problems for me, but maybe it's only due to my wamp configuration. I'm more preoccupied for the javascript part that doesn't display files added for the moment. Thanks
Always stuck on the same problem, I'm seeing files added in $existingFiles in the list below my file input. But when I try to add a document with the file input or with drag and drop, there is just the progressing bar displaying (loading with progression null then disappearing once the file loaded without progression). I see the upload success in chrome console and they are added on validation of my form. But I don't succeed to have them added on file list with input or drag and drop. However, all seems correctly configured. I'm not an expert in js so maybe you could have an idea for me to look further?
kzrdt, Did you find a solution for the problem with the synchronization?? Thanks
Sadly, I'm no longer using Symfony for the moment. I don't have the project sources with me so I can't really help you.
Thank you anyway!!
2013/9/16 Julien Duthoit notifications@github.com
Sadly, I'm no longer using Symfony for the moment. I don't have the project sources with me so I can't really help you.
— Reply to this email directly or view it on GitHubhttps://github.com/punkave/symfony2-file-uploader-bundle/issues/15#issuecomment-24498302 .
Sorry, I´m not working any more with symphony.
2014-03-05 13:45 GMT+01:00 Odirlei Borgert notifications@github.com:
I develop on windows and linux environments using bundle punkave file uploader, I'll be very grateful if you could arrange. thanks
Reply to this email directly or view it on GitHubhttps://github.com/punkave/symfony2-file-uploader-bundle/issues/15#issuecomment-36738503 .
I'm trying to implement your bundle on one of my application, It seems to work until the synchronization of the tmp and definitive folder. I have my file in something like /tmp/attachments/198359516(/originals) but on validation, I obtain : at FileManager ->syncFiles (array('from_folder' => '/tmp/attachments/1210185416', 'to_folder' => '/attachments/1474', 'remove_from_folder' => true, 'create_to_folder' => true)) in C:\wamp\www\project\vendor\punkave\symfony2-file-uploader-bundle\PunkAve\FileUploaderBundle\Services\FileUploader.php at line 47
The folder is however created. Do you know if it is something that could come from my configuration?
Thanks for your bundle. It took me some time to understand it but it's really a nice and clean tool.