I really wanted my form to have an attachment field wherein a user can browse a file. I came to read the documentation but cannot find an example on how to create an attachment field. Does anybody know how to do that?
unfortunately, devexpress does not provide the capability to upload files, my recommendation is to use phoneGap API instead.
PhoneGap File API
PhoneGap Media API
Also Check FileTransfer Object to upload or download files to and from the server.
You will find full examples in the link I provided.
Related
I have a docx file saved on firebase and I want to render this documnent in my app so not using an external app to open the document as a number of file libraries do. I have tried flutter_filereader which works perfect for a file on my phone however i cannot use it to open a url. Is this possible? I think converting it to a pdf would work as I can display those from a url, however I cannot find a library that will allow me to convert files to pdf before uploading to firebase?
Any help is much appreciated
You could display the url in-app using flutter_webview https://pub.dev/packages/webview_flutter
You can do this with a simple API call to PdftronFlutter.openDocument
Follow the this link https://www.pdftron.com/blog/flutter/build-a-document-viewer-in-flutter/. This blog said the usage of PdftronFlutter.
I want to use the new
firebase email extension.
I need to attach a file stored in firebase storage to the email. Im browsing source code of the extension and I dont see any mention of attachment. Is there any way to do it?
That extension currently doesn't do anything with attachments. You are welcome to file a feature request if that's important to you.
I need to upload an avatar to my app. But I want the shortest path to achieve this. Just a file input and a regular upload to my server side. Then I would just save whether or not the user has an avatar on MongoDB, move it to the avatar folder with the same name of the user's id.
But everything I see over there is quite complicated. All of them use third-party packages. But I guess Meteor provide it's own way with a little more configuration, doesn't it?
How can I do this task?
I suggest using CollectionFS plugin for meteor (link: https://github.com/CollectionFS/Meteor-CollectionFS ) - the documentation is pretty straightforward and clear.
I am trying to hook into the Wordpress file uploader and would like some suggestions. I would like to be able to grab the path of the source file (not WP path; i.e. K:\docs\file.pdf) so I can download another file of the same name (different extension) & path automatically (i.e. K:\docs\file.txt).
Wordpress provides hooks for after the file is uploaded but all path information at that point is internal to wordpress.
Thanks in advance!!
the path information can be obtained from normal php functions like pathinfo() and realpath() for example .
Bit too late to the party but I think what you are asking for is to find the source of the document in the clients system and based on that you want similar files there to be picked up by the browser and then sent to the user.
I think it will be a fairly complex thing to do, firstly you have to get the source of the document being added to the browser (I am not sure it can be done, but if it can be done then it will be via javascript) and then upload all the files one by one to the server hosting wordpress and you can do this by creating a custom page which will add the files uploaded to it as a wordpress attachment and then using something like jquery file uploader to upload files to that location.
But honestly, I think it would be a very complex thing, unless the client and the server are on the same machine.
I have have a solution now to upload multiple files using (drag drop) technique by JavaScript and jQuery, but I need to find a way to upload folder with all of it is content like Google drive . Is this possible?
Unfortunately you can not do this, only with a browser.
You will have to use a custom client for this.
But a simple method will be Ask the user to ZIP the folder and upload the zip using the file-upload control.
Then on the server end, you can un-zip and read the content.