ImpressPages 4 grid field to upload file to a temp folder instead of repository - file-upload

I created a plugin for IP 3.9 to upload videos to encoding.com and convert them to mp4 so users would not have to worry about the format of the videos to use in their html5 sites.
In the previous version of ImpressPages I used the element_file of the ItemsArea class to upload the original videos to a temp folder, once the video was encoded I would put it in the Repository so it is available to the users for embedding using a widget.
In the new Impress Pages 4 Grid class the element_file was replaced for the RepostoryFile field and it directly uploads the file to the main Repository (does not let you choose the destination), which makes the non-encoded video to be available to the user.
Is there a way to override this behaviour without modifying the core files?
or is there a way to tell the repository not to show this files until they are encoded (like a visibility flag)?
or can I create a custom field type from a plugin?

You can create custom field type for your plugin. Just use Full class name including namespace in Grid configuration.
File input which save files to tmp folder would be useful for others. So you can contribute it to the core too.

Related

How to stop uploading WFFM media files in Sitecore Media library folder and get byte array of uploaded media file

I am using Sitecore V8 + WFFM file upload control.
When user upload the file, it get stores in Sitecore Media library, and I get upload media Item Id in Custom Save action event.
So how I can:-
1.Stop uploading media file into Sitecore Media library folder.
2.Get byte array of uploaded media file so that I can pass byte data to rest service
Typically you will need to create you own 'Upload field' inherited from default wffm FileUploadField and override code responsible for handling posted files. You also might need to add custom form save action if you need to handle additionally this posted file. Also you may use idea from this post.

Edit and upload Game Center achievements and leaderboard using Application Loader

Since it's possible to download Game Center metadata through Transporter into a .itmsp package file, how would you edit and upload that file using Application Loader? I see no interface for Game Center metadata in Application Loader. Application Loader is default app to open .itmsp packages. Did I miss something?
At worst best I guess it could be possible to edit the contained .xml file, add a few achievements, and then try to upload that into iTunes Connect using Application Loader.
If you make a lookup on an existing app inside your Itunes account, you download a file called like like the vendor_id with the .itmsp format. My experience was, opening this file by double clicking inside the Application Loaderjust changes the data inside this archive.
In my case, an additional file was created called something like meta-local... and the metadata.xml from Itunes Connect has been changed. It's like the Application Loader deletes information like description, keywords, url`s, screenshots and all the data you have to define the first time you create the app before uploading the binary.
Instead of using the Application Loader you should open the .itmsp file by right clicking and selecting show package content. This way nothing will be changed and you can open the metadata and change specific data.
I don't have Game Center elements included in my app yet but I did some researches on tools which could automate the process of generating and changing data. Have a look at these projects, the first one looks like it could be exactly what you're looking for:
iTunes Transporter Generator
iTunes Store Connector
iTunes Store Transporter Web
If not maybe you could create an Apple Script to parse the metadata.xml and add or change your data.
I would appreciate if you could leave a comment if any of these tools could help you with the Game Center problem.

Multiple photo upload using struts1

We happened to get requirement to upload the multiple files ( like the gmail attachments ) using struts 1.3.5 and Ajax.
I happened to go thorough lot of resources but no luck.
Can someone shed light on this possibly by suggesting or pointing to some useful resources.
I was also looking for a multiple file upload solution for my struts2 application. Since ajax form submit do not support image submission the only option to use was a hidden iframe strategy. However, i found this wonderful plugin which uploads multiple files withour reloading the page and also shows a cool progress bar. The best thing about this plugin is that it doesn't uses flash and works on IE too. I strongly recommend using this plugin
Donot use taglibrary defined file upload for uploading. You can still use
common- fileupload to handle file upload. By doing this you can dynamically
add one more input type file element below the current input type upload using
javascript. I doubt if there is any way to do this using pure struts 1.3.5 :) .

Upload the customer's image while registering in a zen-cart application

How can we upload an image while registering the customer in zen-cart?
I would like to provide an option to upload the customer's image on registering with a zen-cart application. Is there a plug in for that?
Not that I've heard of. You would need to extend the customer_info table to hold the image file name, add an extra field to the account creation page and then handle the uploaded file in the account creation pages includes/modules/pages's header_php.php file.
However, there is a Zen Cart file upload class that provides an easy to use toolset for the last step. The admin banner page offers a good example to copy from.

How to access Local file system using Silverlight 4 (Webbrowser control)

Our Silverlight application needs to show to the user previews of HTML pages it generates dynamically, so we want to use the WebBrowser to show these pages. The problem is that the HTML contains links to other local files such as images, flash objects, CSS and javascript files. The CSS and javascript could be placed inline in the HTML, but I haven't found a way to embed images. Something simple like this just doesn't work:
Creating the HTML file and the image file in the isolated storage is doable, but I can't get the path to the created HTML file to pass on to WebBrowser.Navigate(uri).
Reading the contents of the HTML file and calling WebBrowser.NavigateToString(string) will show the page, but not any linked images or scripts.
Linking to online sources is not an option as the application needs to work offline (i.e. out of browser) and performance would be much better if the images and flash objects were able to be cached locally.
So, is there any way in Silverlight of showing in the WebBrowser control a local HTML file that contains an image from the local file system, or is it impossible?
Thanks, sandeep agrawal
The only way to make that work is to make the Silverlight an OOB application, and then you can still only access the My* folders.
I heard that someone wrote a browser control that can be used without going OOB but not sure about that. This is a real pain, but a necessary one I guess.