Let user review a file before uploading it - asp.net

I am programming a control to allow the users of our intranet to upload multiple files into our system, but with some added functionality.
Imagine you as a user are uploading N files, when you add N files the intranet presents you a list like this:
File_name_1 ..... [View] [Remove] [Upload]
File_name_2 ..... [View] [Remove] [Upload]
.
.
.
File_name_n ..... [View] [Remove] [Upload]
[Remove all file] [Upload all files]
If you clic on the View button the file named "file_name_X" will be opened so you can review it and be sure it really is the file you want to upload.
Is this possible?, I am new on the Web programming world and all I found suggest the browsers do not allow you to access local file system from inside a web, but I am not sure.

One way to do this is that you actually upload initially but you only upload it to a "Staging" area. Thus it wouldn't have actually been committed to your system.
This is what Gravatar does which uploads the file and then lets you crop and adjust the image before saving it.
The only other way I've seen this done is using an ActiveX control for example in IE or some other browser extension mechanism.

Uploading files while presenting a good user interface, including progress reporting about the upload, is hard.
I suggest the Yahoo UI uploader widget: http://developer.yahoo.com/yui/uploader/
It's also the basis for the Flickr uploader, see the YUI blog post:
http://yuiblog.com/blog/2009/02/26/flickr-uploadr/
Larry

In IE the file input type will put the full path in the value attribute.

Related

Make ADAM upload to specified folder

I want to let my content admins use the drag and drop upload through ADAM but keep the images they upload in a specified folder. For example, I have a field called "Background" which is a hyperlink. I've set it to use the Image Manager, and specified the folder to be /Images/landing-backgrounds. But when they drag and drop through ADAM, it puts the .jpg in an ADAM folder. The problem is that they can't access this image later on through /Images/landing-backgrounds. Is there a way I can force them to upload to the specified folder?
At the moment this is not configurable. The reason is that the concept/idea in ADAM is "automatic digital asset management" - and a core part of the automatic is related to "belongs to the item 7503, and only to item 7503".
The moment you want to re-use the assets in other scenarios / items, it's not "automatic management" any more, but simply a nicer upload / file-picker than DNN provides.
So this is currently not possible with ADAM, for this you need to use the "dnn standard" telerik-file-upload component

Display images in template file

I have one template file for the main page, after creating home page I have added text to check if it reflect changes on my home page or not and it was successfully displaying text. But when I try to add image by clicking on add media option then image is uploaded but not displaying on my page. What piece of code should be used to get this image on my template file or any other suggestions?
i'am pretty sure u need to SETUP CHMOD to 744
because its randomly set to 600.
This means it is not public visible.
1.You just need to get an FTP Programm,
2.Connect to your Webspace,
3.Go to your Uploadfolder,
4.Choose Your Image to Show with an RightClick,
5.and set CHMOD to 744.
I'll show u here (FLASHFXP)
(Attribute set = READ)
I need to do this for every picture, so u will need to do it too.
Okay i didnt knowed that ;)
You can also try to set the file permissions via rightclick on the File in your Windows-System.
Like This:
http://i.imgur.com/wBptC7s.png
make sure you have Admin-Privileges and the File is allowed to be read, change and execute, then it should work.
There is another Option
i recommend to Setup Wordpress to "DONT SORT UPLOADED FILES" to seperate folders like "per month", "per year" and this kind of Stuff, its better to have them Uploads all in ONE-Directory.(Thats my experience)
In the past i also had my Problems with the Uploads, and it all occurred just because of the "Multiple Folder Uploads" that Wordpress makes.
To change that go to:
Settings -> Media -> Sort Uploads by...
I recommend you to get a Free-Webspace for testing purposes, in my opinion its more comfortable to work online, and you can access it from everywhere you are :) Work never stops
you can add any custom field with this module https://wordpress.org/plugins/advanced-custom-fields/. And can easily add it to your pages and posts.

Update GUI from Config File in Qt

I am making a GUI in which based on user login a certain number of buttons are supposed to be enabled and the rest disabled. I have to do this with the help of a config file.
Can anyone please share any examples or references if they know.
Thank you :)
You can write a Qt application that parses an xml file by validating it against a predefined xsd file.
The xml file had layout, grid, button text, and other various information for the user.
The goal of this was the end user could create his/her own xml file to custom configure their buttons.
What you need:
Define a data structure that will match your objective
Validate and test XML
Create a widget with whatever kind of layout you want. If you're doing buttons, you probably want to use a QGrid
Load the XML and configure your layout.

Is there any example that implement Ckeditor (browse server - upload) functions in asp.net?

it's my first question to this nice site :) ... i use ckeditor.com in my asp.net web site and it have a great features but if any check the full feature example when inserting image you have two feature ( upload to server - browse server and choose image ) as shown in below image
http://i45.tinypic.com/2rmp5ds.jpg
My Questions :
1- Browse Server function integrate with another product called CKfinder .. i don't want to use it i search for such one but in asp.net and can be integrating with ckeditor ?
2- is there an example Upload image function that can save in SQL DB and can be integrated with ckeditor ?
Thanks in advance for your expected cooperations
I don know much about CK Editor, but I would like to suggest you to take a look at free text box, it has the same features and u can manage to upload photo as well.
You don't need to use Ckfinder. Just use below code in ckeditor.replace it will give you browse server button on image window and upload functionality by not integrating with any other plugin. These are all Ckeditor functions.
filebrowserImageBrowseUrl : your image loading path
filebrowserWindowWidth : '640',
filebrowserWindowHeight : '480',
filebrowserImageUploadUrl : '/uploader/upload.php?type=Images',

Send a file from a web page in Outlook

I have a web page that displays a list of documents stored on the web site. I need to add a link next to each document that can e-mail it. By that I mean attach the entire document to the e-mail.
When clicking the e-mail link, a 'New Message' window needs to display with:
Subject line filled in with the title of the document (displayed on the web page)
Contents of the document downloaded from the web site and added as an attachment
The mail client is Outlook. The server is SharePoint (ASP.NET) which contains web services that are able to download files. JavaScript and any JS library is available for use. I'm not able to deploy additional software to the client.
What are my options and are there any references that achieve this type of functionality?
An alternative might be to put a link in the body of the message to a place where the file can be downloaded. You could even make it a web page that deletes the file after a set time or number of downloads. To be safe you would need to use "mailto:someone#somewhere.com&subject=somesubject&body="+System.Web.HttpUtility.UrlEncode(bodyStringToEncode) to generate an html safe llink
Even with the above answer about launching an email using office automation, you'd still need to first have the file sent to the client, saved in a name and location known to the server, in order to attach the file.
I can't think of a way to attach the document but you can have a link to fill in the subject and body of an email in which you could add a link to the online document.
<a href="mailto:test#test.com?subject=
[your_subject]&body=[url_encoded_content_string]">New Message</a>
You can use this function to urlencode your body text http://phpjs.org/functions/urlencode
Hope that helps,
Josh
Using the HREF mailto, you can make outlook open with the subject at least. I don't know any way to set the body nor an attachment.
From javascript there's no way to automate Outlook using OLE.
example
Taken from:
http://www.angelfire.com/dc/html-webmaster/mailto.htm

Resources