I want to create a text filed. When focus or click it, a file upload modal window will be showed (like file upload modal window of the redactor - http://imperavi.com/redactor/)
The return file name will showed in the text filed.
How can I do it ? Thanks for any help !
Have you try jQuery File Upload ? File Upload widget with multiple file selection, drag&drop support and progress bar for jQuery. Supports cross-domain, chunked and resumable file uploads. Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.
Check this : http://blueimp.github.io/jQuery-File-Upload/basic.html
Related
In IOS, if you take a Voice Memo, you can Save To Files it from the share dialog. This puts it on your iphone as a file.
I am building a mobile web form with a file picker. I am trying to make it so that the accept= of the file picker will pick up voice memo files.
Currently, accept="audio/*" does NOT allow selection of the voice memo file.
Accept="*" does.
So the correct answer must be that the content-type is some other content type and not audio/*. Can anybody shed light on what it is?
Testing with https://htmlstrip.com/mime-file-type-checker on my iPhone, recorded a voice file, saved file and uploaded, this site tells me its:
audio/x-m4a
Also perhaps the component/lib for the file picker you're using doesn't support the particular filetype, or it's filtering it internally. Not sure what you're using there, but in vanilla HTML this seems doable
I want to use a good file input of Bootstrap and tried Bootstrap File Input as given on the examples on that page. However, I am looking for a multiple file uploading and a style as shown below but there is not such a kind of example on any pages of the web. How can I create a file upload as shown below? And is there a better file input of Bootstrap than Bootstrap File Input?
try "Bootstrap Drag and Drop Upload" by Bootsnipp.
http://bootsnipp.com/snippets/featured/bootstrap-drag-and-drop-upload
or dropzonejs file upload
http://www.dropzonejs.com/bootstrap.html
I'm currently working on a intranet webapp for a company.
I've created it so the administrators of the site are able to upload files
(.docx, .pdf, .xlsx, .ppt etc) up to the webapp, to provide easier access
to documents for the employees. It works very well, however my client wasn't
too fond of having to download the files, and wanted it to pop up in the browser,
or open up the file-spesific program instead of download.
I was playing with some ideas:
1. Somehow parse the files to JSON at upload, and then show the content in browser with html.
2. Generate a pdf from the uploaded file (which automatically launches in the browser).
3. Somehow use a previewer to show the filecontent in the browser
4. Clients computer launches the uploaded file automatically on download, however I think this is a bit more tricky...
What would be the best and most time-efficient way to go about this?
It feels like what you actually want/need is a javascript document viewer (only) such as http://viewerjs.org/.
I need to show an Adobe PDF Reader print-dialog when someone opens this PDF through our webportal.
Now I stream a PDF through my existing webportal made in Delphi XE2. I generate the PDF's in Waler's TExtraDevices, a component that extends Report Builder 14.07 for Delphi.
I read somewhere, that I can embed JavaScript in a PDF to trigger the print-dialog to show.
How/where do I inject/place the JS in the Waler TExtraDevices PDF generator? It IS an option to use the native PDF generation of Report Builder itself (but I'll have to check if they support embedding subsets of fonts, because the first versions of their PDF engine produced too large PDF's). So an alternative question may be: How/where do I inject/place the JS in the native PDF generator of Report Builder?
I've checked the manuals, the web and StackOverflow but can't find anything about how to accomplish this.
If you do not mind a solution which involves a separate post-process, you could use a library like Debenu QuickPDF to update the PDF to add a Javascript action which opens the print dialog on document open. They have a trial version which would enable you to verify that it works with your specific PDFs.
I need to individualize documents within an iOS-App. I could provide the origin-documents as DOCX, PDF, PPT etc. The output-format has to be PDF.
My minimun requirement is to fill some text-fields. Nice to have would be to replace an image, too.
I´m quite used to generate PDFs programmatically using UIGraphicsBeginPDFContextToFile etc. But in my current case I don´t want to create the whole document programmatically, I just want to replace some content.
Any hints / tipps?
Thank you in advance.
DOCX is a zip - format file so you can process the contents programmatically and the reconstruct the zip file. PPT is a binary format though newer versions of PowerPoint might also construct zip-oriented versions that you can programmatically process. You mentioned though that you need don't want to programmatically process these documents - which I would probably also do only as a last resort.
For your DOCX origin/source documents (or doc,odt,rtf but not ppt/pdf) you could use Docmosis cloud services if your app can have the external dependency. You would upload your DOCX origin documents with placeholders for text-fields or images as a one-off/occasional task. Your iOS app then calls Docmosis sending instructions and data to create the output PDF and either stream it back to the app or email/store it or both.
The upside is it takes all the load and coding away from the iOS application (there is an SDK). The downside is it is an external depdendency. Please note I work for the company the created Docmosis.
Hope that helps.
Why not just load a page in a webView modal that points to a URL of a page you create? The main parts of the page would be static, and then the fields you need to customize would be populated via Javascript or PHP.
For example, we have a contact form in our app that gives you an option to view the details of your completed form after you submit. When the user clicks on the button to view the Contact Confirmation, it loads example.com/confirmation.php in a modal view within the iOS App.
On the confirmation.php page (on the web), I use PHP to pull in $_GET variables from the URL parameters which then populates the page with my static content, and their customized information that they entered into the form.