-
Notifications
You must be signed in to change notification settings - Fork 725
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
A question about file field tipe #311
Comments
@jeromemacias any insight? |
To get a complete url for your entity you have to retrieve the For example: |
Thanks @jeromemacias for writing, but the string '/upload/:id' is not replaced to the correct identifier, i.e.: /upload/123. How can I get that identifier?. |
Mmm, exact, but how we can handle the creation part ? |
@jeromemacias for now, on the creation part I forbid uploading images. Your suggestion implies the existence of an event after upload, does anyone know which event is fired after upload?. BTW, I don't know why the upload POST is sent just after selecting a file instead of sending the whole package on form submission. |
I finally store all files in an /upload directory, then, when submitting the form, there's an upload_filename param with the recently uploaded file. Using the upload_filename param I can store it's path in my database. |
Please help me . i develop an admin page for a website and i don't now how to upload image with ng-admin |
I have the same problem as @jeanlucDjeke . here's my code: companies.creationView()
but do I need to put some server-side code? thank you, guys. |
Hi Jean, Actually I don't have a server side for that.. I can't find a place to do =/ On Thu, Mar 10, 2016 at 12:23 PM, Jean-Luc DJEKE notifications@github.com
Att, Analista de Sistemas ITIL® V3 Foundation |
ok thank you.I hope someone else did it |
I added a field type to one of my entities. After I click browse and select the file, the file is uploaded automatically. But it does a post to /upload route, how can I create a custom url passing the entity Id?.
for example:
.uploadInformation({url: route_of_entity + '/upload/:id'})
This should give something like: 'item/upload/21'.
Also, how can I get the route of an entity?.
The text was updated successfully, but these errors were encountered: