rigobcastro / PyroCMS-Multiple-Images-FieldType

MIT License
9 stars 5 forks source link

Upload images in frontend #16

Open ChristianGiupponi opened 9 years ago

ChristianGiupponi commented 9 years ago

Hi,
I need to allow my users to upload some images via the frontend.
I'm able to display the dropzone without any problem setting the csfr_protection to false but when I try to upload a photo I'm not able to see that image after the upload process.

Seems like that the {{url}} is not passed to the view, how can I solve this?

schermata 2015-08-18 alle 14 55 48

schermata 2015-08-18 alle 14 55 56

schermata 2015-08-18 alle 14 56 03

ChristianGiupponi commented 9 years ago

Another problem is that the script point to "admin/files/upload" but normal users can't access to admin function so how can I allow the upload?

ChristianGiupponi commented 9 years ago

Any idea? Is this field type supported or not?

Akshay-Hegde commented 8 years ago

@ChristianGiupponi I found a solution, I will be sharing with you shortly, which allow us upload both files and images, even in front end, I modified flupload.js bit so that it can send data as an ajax call, kind of hack you can say and little bit of php and js code, ping me at akshay.k.hegde@gmail.com