any example for use this bundle
gajgaw opened this issue · 4 comments
can you give an example to use this bundle please,
There is one in the documentation.
On Tue, Feb 12, 2013 at 10:52 AM, Hicham GAJGAOU
notifications@github.comwrote:
can you give an example to use this bundle please,
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/24.
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com
Merci,
I did not understand well this part
{ id: posting.id, editId: editId }
Somewhere you have an object you want to attach these files to. (If not,
why are you using this bundle?)
"posting" is that object.
"editId" is an id generated for this editing session.
posting.id is the primary key of the object.
On Tue, Feb 12, 2013 at 2:56 PM, Hicham GAJGAOU notifications@github.comwrote:
Merci,
I did not understand well this part
{ id: posting.id, editId: editId }—
Reply to this email directly or view it on GitHubhttps://github.com//issues/24#issuecomment-13453141.
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com
$fileUploader = $this->get('punk_ave.file_uploader');
$fileUploader->syncFiles(
array('from_folder' => '/tmp/attachments/' . $editId,
'to_folder' => '/attachments/' . $posting->getId(),
'remove_from_folder' => true,
'create_to_folder' => true));
When I say tmp / attachment folder in folder editId olsuturdugum the post after posting pictures form-> id I copy the images directory of the posting-> id add and re-save the image in the bottom again, when I copy that folder before deleting the image I have is that I have applied a new posting-id within the previous I do not want to erase image of