Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Upload images in frontend #16

Open
ChristianGiupponi opened this issue Aug 18, 2015 · 3 comments
Open

Upload images in frontend #16

ChristianGiupponi opened this issue Aug 18, 2015 · 3 comments

Comments

@ChristianGiupponi
Copy link
Contributor

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
Copy link
Contributor Author

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
Copy link
Contributor Author

Any idea? Is this field type supported or not?

@Akshay-Hegde
Copy link

@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 [email protected]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants