-
Notifications
You must be signed in to change notification settings - Fork 85
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
Full downloadable example #6
Comments
How about some specifics of what went wrong? A sandbox project would be nice, yes. On Thu, Aug 23, 2012 at 8:37 AM, pinkopalla notifications@github.comwrote:
Tom Boutell |
This message is all chopped up, I think it's missing a bunch of what you said...? |
Right! Sorry! |
You're correct, I was missing some punctuation in that example. In my actual project I pass in the action URL, I wrote the path off the top of my head when turning my code into sample code and wasn't careful enough with the syntax. I fixed this in the README. |
Hi boutell, first thanks you for your work, I was willing to use the BlueImp app in Symfony2 and you did the job already 👍 |
There's pretty much a full example in the documentation, have you been On Tue, Nov 6, 2012 at 5:49 AM, amelard notifications@github.com wrote:
Tom Boutell |
Hi, thank's for the quick response. I have been through it, but as I said, I'm newbie in symfony2... $request = $this->getRequest();
$editId = $this->getRequest()->get('editId');
if (!preg_match('/^\d+$/', $editId))
{
$editId = sprintf('%09d', mt_rand(0, 1999999999));
if ($posting->getId())
{
$this->get('punk_ave.file_uploader')->syncFiles(
array('from_folder' => 'attachments/' . $posting->getId(),
'to_folder' => 'tmp/attachments/' . $editId,
'create_to_folder' => true));
}
} and I get "$posting undefined " I get stuck... I'm reading loads of documentation at the moment in order to understand but a working example would help me greatly. |
$posting is your object, the thing you want to associate the file with. On Tue, Nov 6, 2012 at 8:46 AM, alexandre melard
Tom Boutell |
Ok, I think I understand better, when files are uploaded using the form, $posting->getId() represents the name of the folder in relation with the Am I right? On 6 November 2012 15:03, Tom Boutell notifications@github.com wrote:
|
I encourage the use of a randomized ID during the editing, and syncing to On Tue, Nov 6, 2012 at 9:18 AM, alexandre melard
Tom Boutell |
Thanks for your help, I understand better now :) I'm going to move on and On 6 November 2012 15:55, Tom Boutell notifications@github.com wrote:
|
Hi Boutell, I finally got through and have your bundle up and running... I had quite an hard time but the result is worth it!! Beside I think a little sandbox would do no harm, I am going to fork your bundle anyway and let you know where I endup... Cheers! |
Fork away and have fun! I am reluctant to eliminate the system calls On Tue, Nov 13, 2012 at 4:52 PM, alexandre melard
Tom Boutell |
Let see where we get, I'm also a big fan of rsync 👍 |
Is this the full example for symfony2-file-uploader-bundle ? |
@Kwadz This is an example of my fork of the jquery file uploader, which has gone quite fare from tom's branch. |
Hi boutell/mylen, I also can't get it to work. Kinda lost here. First: do I have to install BlueImp also ? or is everything needed in this bundle ? I tryied to implement mylen example, without any success also. |
Hi! Thanks you for your interest. I'll try to find some time today to fix the Alex
|
Hi my controller function;
but :( code run Variable "posting" does not exist in PikoCRMEcommerceBundle:Product:product_add.html.twig at line 102 Where is the error have to identify how the $posting |
Something seems not to work here. Do someone would to share a full example?
The text was updated successfully, but these errors were encountered: